deviceprovide: only signal when there is a loop

This commit is contained in:
Wim Taymans 2017-09-19 13:16:22 +02:00
parent 2e379d5f8f
commit 8f67aa2c38

View file

@ -321,7 +321,8 @@ on_state_changed (void *data, enum pw_remote_state old, enum pw_remote_state sta
GST_ERROR_OBJECT (self, "remote error: %s", error); GST_ERROR_OBJECT (self, "remote error: %s", error);
break; break;
} }
pw_thread_loop_signal (self->main_loop, FALSE); if (self->main_loop)
pw_thread_loop_signal (self->main_loop, FALSE);
} }