mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
- unref events and pools
Original commit message from CVS: - unref events and pools - use _merge in mikmod instead of _append
This commit is contained in:
parent
dba0d2eb35
commit
c00336816a
3 changed files with 6 additions and 4 deletions
|
@ -520,7 +520,6 @@ gst_mad_src_event (GstPad *pad, GstEvent *event)
|
|||
/* seek worked, we're done, loop will exit */
|
||||
res = TRUE;
|
||||
}
|
||||
gst_event_free (seek_event);
|
||||
}
|
||||
/* at this point, either the seek worked or res == FALSE */
|
||||
if (res)
|
||||
|
@ -534,6 +533,7 @@ gst_mad_src_event (GstPad *pad, GstEvent *event)
|
|||
break;
|
||||
}
|
||||
|
||||
gst_event_unref (event);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
@ -692,7 +692,7 @@ gst_mad_chain (GstPad *pad, GstBuffer *buffer)
|
|||
|
||||
mad->base_time = time;
|
||||
|
||||
gst_event_free (event);
|
||||
gst_event_unref (event);
|
||||
discont = gst_event_new_discontinuous (FALSE, GST_FORMAT_TIME, time, NULL);
|
||||
gst_pad_push (mad->srcpad, GST_BUFFER (discont));
|
||||
break;
|
||||
|
|
|
@ -754,7 +754,6 @@ gst_mpeg2dec_src_event (GstPad *pad, GstEvent *event)
|
|||
/* seek worked, we're done, loop will exit */
|
||||
res = TRUE;
|
||||
}
|
||||
gst_event_free (seek_event);
|
||||
}
|
||||
/* at this point, either the seek worked or res == FALSE */
|
||||
}
|
||||
|
@ -764,6 +763,7 @@ gst_mpeg2dec_src_event (GstPad *pad, GstEvent *event)
|
|||
res = FALSE;
|
||||
break;
|
||||
}
|
||||
gst_event_free (event);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
@ -805,6 +805,7 @@ gst_mpeg2dec_change_state (GstElement *element)
|
|||
case GST_STATE_PLAYING_TO_PAUSED:
|
||||
/* need to clear things we get from other plugins, since we could be reconnected */
|
||||
if (mpeg2dec->peerpool) {
|
||||
gst_buffer_pool_unref (mpeg2dec->peerpool);
|
||||
mpeg2dec->peerpool = NULL;
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -633,7 +633,6 @@ gst_mpeg2dec_src_event (GstPad *pad, GstEvent *event)
|
|||
/* seek worked, we're done, loop will exit */
|
||||
res = TRUE;
|
||||
}
|
||||
gst_event_free (seek_event);
|
||||
}
|
||||
/* at this point, either the seek worked or res == FALSE */
|
||||
}
|
||||
|
@ -643,6 +642,7 @@ gst_mpeg2dec_src_event (GstPad *pad, GstEvent *event)
|
|||
res = FALSE;
|
||||
break;
|
||||
}
|
||||
gst_event_unref (event);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
@ -680,6 +680,7 @@ gst_mpeg2dec_change_state (GstElement *element)
|
|||
case GST_STATE_PLAYING_TO_PAUSED:
|
||||
/* need to clear things we get from other plugins, since we could be reconnected */
|
||||
if (mpeg2dec->peerpool) {
|
||||
gst_buffer_pool_unref (mpeg2dec->peerpool);
|
||||
mpeg2dec->peerpool = NULL;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue