Commit ec95963b authored by Edward Hervey's avatar Edward Hervey 🤘

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
parent dddb837d
...@@ -1660,9 +1660,9 @@ gst_video_decoder_get_timestamp_at_offset (GstVideoDecoder * ...@@ -1660,9 +1660,9 @@ gst_video_decoder_get_timestamp_at_offset (GstVideoDecoder *
*pts = ts->pts; *pts = ts->pts;
*dts = ts->dts; *dts = ts->dts;
*duration = ts->duration; *duration = ts->duration;
timestamp_free (ts);
g = g->next; g = g->next;
decoder->priv->timestamps = g_list_remove (decoder->priv->timestamps, ts); decoder->priv->timestamps = g_list_remove (decoder->priv->timestamps, ts);
timestamp_free (ts);
} else { } else {
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment