Original commit message from CVS:
* gst/base/gstbasesrc.c: (gst_base_src_get_range):
Make sure we never call the create function is we
got deactivated.
+2005-07-19 Wim Taymans <wim@fluendo.com>
+
+ * gst/base/gstbasesrc.c: (gst_base_src_get_range):
+ Make sure we never call the create function is we
+ got deactivated.
+
2005-07-19 Andy Wingo <wingo@pobox.com>
* gst/parse/parse.l: Attempt to solve bug #172815.
}
GST_LIVE_UNLOCK (src);
+ GST_LOCK (pad);
+ if (GST_PAD_IS_FLUSHING (pad))
+ goto flushing;
+ GST_UNLOCK (pad);
+
if (!GST_FLAG_IS_SET (src, GST_BASE_SRC_STARTED))
goto not_started;
return ret;
/* ERROR */
+flushing:
+ {
+ GST_DEBUG_OBJECT (src, "pad is flushing");
+ GST_UNLOCK (pad);
+ return GST_FLOW_WRONG_STATE;
+ }
not_started:
{
GST_DEBUG_OBJECT (src, "getrange but not started");
}
GST_LIVE_UNLOCK (src);
+ GST_LOCK (pad);
+ if (GST_PAD_IS_FLUSHING (pad))
+ goto flushing;
+ GST_UNLOCK (pad);
+
if (!GST_FLAG_IS_SET (src, GST_BASE_SRC_STARTED))
goto not_started;
return ret;
/* ERROR */
+flushing:
+ {
+ GST_DEBUG_OBJECT (src, "pad is flushing");
+ GST_UNLOCK (pad);
+ return GST_FLOW_WRONG_STATE;
+ }
not_started:
{
GST_DEBUG_OBJECT (src, "getrange but not started");