summaryrefslogtreecommitdiff
path: root/gst/jpegformat
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2011-04-11 18:30:17 +0300
committerStefan Kost <ensonic@users.sf.net>2011-04-11 18:30:17 +0300
commit3a4a0c492e6277b6e1c32e5941650a6f6e0cf321 (patch)
treeaf8a9c930ee147a306a0c4277f357a51b08f0240 /gst/jpegformat
parentb67454b44edadd59515d062360a0f4e86e7ed6d6 (diff)
downloadgstreamer-plugins-bad-3a4a0c492e6277b6e1c32e5941650a6f6e0cf321.tar.gz
jpeg: set tags to NULL at init time and after freeing them
Diffstat (limited to 'gst/jpegformat')
-rw-r--r--gst/jpegformat/gstjpegparse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/jpegformat/gstjpegparse.c b/gst/jpegformat/gstjpegparse.c
index 47114465b..cb10ef88b 100644
--- a/gst/jpegformat/gstjpegparse.c
+++ b/gst/jpegformat/gstjpegparse.c
@@ -880,7 +880,6 @@ gst_jpeg_parse_push_buffer (GstJpegParse * parse, guint len)
parse->priv->caps_framerate_numerator = parse->priv->framerate_numerator;
parse->priv->caps_framerate_denominator =
parse->priv->framerate_denominator;
- parse->priv->tags = NULL;
}
GST_BUFFER_TIMESTAMP (outbuf) = parse->priv->next_ts;
@@ -1043,8 +1042,10 @@ gst_jpeg_parse_change_state (GstElement * element, GstStateChange transition)
switch (transition) {
case GST_STATE_CHANGE_PAUSED_TO_READY:
gst_adapter_clear (parse->priv->adapter);
- if (parse->priv->tags)
+ if (parse->priv->tags) {
gst_tag_list_free (parse->priv->tags);
+ parse->priv->tags = NULL;
+ }
break;
default:
break;