mimic: Warn if paused-mode is toggled while playing

This commit is contained in:
Olivier Crête 2009-10-12 18:47:35 -04:00
parent 81a055f20d
commit 50fe356373

View file

@ -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: