videodecoder: Free data after removing it from the list

While it wouldn't have caused any failures (g_list_remove doesn't dereference
the provided pointer), it does make the code cleaner.

CID #1212174
This commit is contained in:
Edward Hervey 2014-05-12 17:17:07 +02:00
parent dddb837d0d
commit ec95963b1f

View file

@ -1660,9 +1660,9 @@ gst_video_decoder_get_timestamp_at_offset (GstVideoDecoder *
*pts = ts->pts;
*dts = ts->dts;
*duration = ts->duration;
timestamp_free (ts);
g = g->next;
decoder->priv->timestamps = g_list_remove (decoder->priv->timestamps, ts);
timestamp_free (ts);
} else {
break;
}