gst/gstelement.c: On paused->ready, set pad->caps to NULL, as is the documented behaviour in this state change. Fixes...

Original commit message from CVS:
* gst/gstelement.c: (activate_pads):
On paused->ready, set pad->caps to NULL, as is the documented
behaviour in this state change. Fixes playback of series of
media files when visualization is enabled in Totem.
This commit is contained in:
Ronald S. Bultje 2005-08-08 12:14:20 +00:00
parent c80125e55b
commit c27821d70c
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2005-08-08 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/gstelement.c: (activate_pads):
On paused->ready, set pad->caps to NULL, as is the documented
behaviour in this state change. Fixes playback of series of
media files when visualization is enabled in Totem.
2005-08-07 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/elements/gstcapsfilter.c: (gst_capsfilter_set_property):

View file

@ -1887,6 +1887,8 @@ activate_pads (GstPad * pad, GValue * ret, gboolean * active)
{
if (!gst_pad_set_active (pad, *active))
g_value_set_boolean (ret, FALSE);
else if (!*active)
gst_pad_set_caps (pad, NULL);
gst_object_unref (pad);
return TRUE;