qtdemux: Don't check for NULL pointers or cast to gpointer as this is

not needed
This commit is contained in:
Robert Swain 2010-01-11 10:05:10 +01:00
parent a340359127
commit c93ea637ef

View file

@ -1581,20 +1581,13 @@ gst_qtdemux_get_index (GstElement * element)
static void static void
gst_qtdemux_stbl_free (QtDemuxStream * stream) gst_qtdemux_stbl_free (QtDemuxStream * stream)
{ {
if (stream->stco.data) g_free (stream->stco.data);
g_free ((gpointer) stream->stco.data); g_free (stream->stsz.data);
if (stream->stsz.data) g_free (stream->stsc.data);
g_free ((gpointer) stream->stsz.data); g_free (stream->stts.data);
if (stream->stsc.data) g_free (stream->stss.data);
g_free ((gpointer) stream->stsc.data); g_free (stream->stps.data);
if (stream->stts.data) g_free (stream->ctts.data);
g_free ((gpointer) stream->stts.data);
if (stream->stss.data)
g_free ((gpointer) stream->stss.data);
if (stream->stps.data)
g_free ((gpointer) stream->stps.data);
if (stream->ctts.data)
g_free ((gpointer) stream->ctts.data);
} }
static GstStateChangeReturn static GstStateChangeReturn