aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mpris2-controller.vala2
-rw-r--r--src/pulseaudio-mgr.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mpris2-controller.vala b/src/mpris2-controller.vala
index ce35a06..cc80a86 100644
--- a/src/mpris2-controller.vala
+++ b/src/mpris2-controller.vala
@@ -21,7 +21,7 @@ using Transport;
public class Mpris2Controller : GLib.Object
{
- public const int MAX_PLAYLIST_COUNT = 20;
+ public const int MAX_PLAYLIST_COUNT = 100;
public MprisRoot mpris2_root {get; construct;}
public MprisPlayer player {get; construct;}
diff --git a/src/pulseaudio-mgr.c b/src/pulseaudio-mgr.c
index 1da8ce1..ad6d34f 100644
--- a/src/pulseaudio-mgr.c
+++ b/src/pulseaudio-mgr.c
@@ -175,7 +175,7 @@ void
pm_update_volume (gint sink_index, pa_cvolume new_volume)
{
// LP: #850662
- if (sink_index < 0){
+ if (sink_index < 0 || pulse_context == NULL){
return;
}
pa_operation_unref (pa_context_set_sink_volume_by_index (pulse_context,
@@ -197,7 +197,7 @@ void
pm_update_mic_gain (gint source_index, pa_cvolume new_gain)
{
// LP: #850662
- if (source_index < 0){
+ if (source_index < 0 || pulse_context == NULL){
return;
}
pa_operation_unref (pa_context_set_source_volume_by_index (pulse_context,