mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
Destroy the bytestream object when we go to paused
Original commit message from CVS: Destroy the bytestream object when we go to paused
This commit is contained in:
parent
9f011f9cf9
commit
76e4e1449c
1 changed files with 3 additions and 5 deletions
|
@ -302,12 +302,12 @@ gst_mpeg_parse_change_state (GstElement *element)
|
||||||
GstMPEGParse *mpeg_parse = GST_MPEG_PARSE (element);
|
GstMPEGParse *mpeg_parse = GST_MPEG_PARSE (element);
|
||||||
|
|
||||||
switch (GST_STATE_TRANSITION (element)) {
|
switch (GST_STATE_TRANSITION (element)) {
|
||||||
case GST_STATE_NULL_TO_READY:
|
case GST_STATE_READY_TO_PAUSED:
|
||||||
if (!mpeg_parse->packetize) {
|
if (!mpeg_parse->packetize) {
|
||||||
mpeg_parse->packetize = gst_mpeg_packetize_new (mpeg_parse->sinkpad, GST_MPEG_PACKETIZE_SYSTEM);
|
mpeg_parse->packetize = gst_mpeg_packetize_new (mpeg_parse->sinkpad, GST_MPEG_PACKETIZE_SYSTEM);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case GST_STATE_READY_TO_NULL:
|
case GST_STATE_PAUSED_TO_READY:
|
||||||
if (mpeg_parse->packetize) {
|
if (mpeg_parse->packetize) {
|
||||||
gst_mpeg_packetize_destroy (mpeg_parse->packetize);
|
gst_mpeg_packetize_destroy (mpeg_parse->packetize);
|
||||||
mpeg_parse->packetize = NULL;
|
mpeg_parse->packetize = NULL;
|
||||||
|
@ -317,9 +317,7 @@ gst_mpeg_parse_change_state (GstElement *element)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_ELEMENT_CLASS (parent_class)->change_state (element);
|
return GST_ELEMENT_CLASS (parent_class)->change_state (element);
|
||||||
|
|
||||||
return GST_STATE_SUCCESS;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue