mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +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:
|
||||
GST_OBJECT_LOCK (mimenc);
|
||||
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);
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue