mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
mimic: Warn if paused-mode is toggled while playing
This commit is contained in:
parent
81a055f20d
commit
50fe356373
1 changed files with 3 additions and 0 deletions
|
@ -172,6 +172,9 @@ gst_mim_enc_set_property (GObject * object, guint prop_id,
|
||||||
case PROP_PAUSED_MODE:
|
case PROP_PAUSED_MODE:
|
||||||
GST_OBJECT_LOCK (mimenc);
|
GST_OBJECT_LOCK (mimenc);
|
||||||
mimenc->paused_mode = g_value_get_boolean (value);
|
mimenc->paused_mode = g_value_get_boolean (value);
|
||||||
|
if (GST_STATE (object) == GST_STATE_PLAYING)
|
||||||
|
GST_WARNING_OBJECT (object, "Tried to disable paused-mode in a playing"
|
||||||
|
" encoder, it will not be stopped until it is paused");
|
||||||
GST_OBJECT_UNLOCK (mimenc);
|
GST_OBJECT_UNLOCK (mimenc);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue