ext/ogg/gstoggmux.c: Stop collectpads before calling the parent state change function on PAUSED->READY.

Original commit message from CVS:
2005-08-02  Jan Schmidt  <thaytan@mad.scientist.com>
* ext/ogg/gstoggmux.c: (gst_ogg_mux_change_state):
Stop collectpads before calling the parent state
change function on PAUSED->READY.
This commit is contained in:
Jan Schmidt 2005-08-02 09:41:05 +00:00
parent b34c0e7e53
commit 49fc826134
2 changed files with 8 additions and 11 deletions

View file

@ -1,3 +1,8 @@
2005-08-02 Jan Schmidt <thaytan@mad.scientist.com>
* ext/ogg/gstoggmux.c: (gst_ogg_mux_change_state):
Stop collectpads before calling the parent state
change function on PAUSED->READY.
2005-08-01 Jan Schmidt <thaytan@mad.scientist.com>
* configure.ac:
When testing for X libs, use the X CFlags

View file

@ -1146,23 +1146,15 @@ gst_ogg_mux_change_state (GstElement * element)
break;
case GST_STATE_PAUSED_TO_PLAYING:
break;
case GST_STATE_PAUSED_TO_READY:
gst_collectpads_stop (ogg_mux->collect);
break;
default:
break;
}
ret = GST_ELEMENT_CLASS (parent_class)->change_state (element);
switch (transition) {
case GST_STATE_PLAYING_TO_PAUSED:
break;
case GST_STATE_PAUSED_TO_READY:
gst_collectpads_stop (ogg_mux->collect);
break;
case GST_STATE_READY_TO_NULL:
break;
default:
break;
}
return ret;
}