mpegtbase: reset element in READY=>PAUSED

Ensures all subclass reset vmethods are called
This commit is contained in:
Edward Hervey 2012-06-29 16:09:31 +02:00
parent b1295aef14
commit e3c0bbe5f6

View file

@ -1805,6 +1805,15 @@ mpegts_base_change_state (GstElement * element, GstStateChange transition)
GstStateChangeReturn ret;
base = GST_MPEGTS_BASE (element);
switch (transition) {
case GST_STATE_CHANGE_READY_TO_PAUSED:
mpegts_base_reset (base);
break;
default:
break;
}
ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
switch (transition) {