diff options
author | Stefan Kost <ensonic@users.sf.net> | 2009-07-17 15:47:10 +0300 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2009-07-17 15:50:19 +0300 |
commit | 4307be631de43ea2a36e8ad06e941a2e36032857 (patch) | |
tree | 500566c7f2c84232fa7f0e65bfba6ae290f290eb | |
parent | 4ef918df28fff5efa67a93a00bfbf0562e8b213f (diff) | |
download | gst-plugins-bad-4307be631de43ea2a36e8ad06e941a2e36032857.tar.gz gst-plugins-bad-4307be631de43ea2a36e8ad06e941a2e36032857.tar.bz2 gst-plugins-bad-4307be631de43ea2a36e8ad06e941a2e36032857.zip |
metadata: reset state if there is something to reset
The condition was wrong and as such the element was writing the same tags on subsequent
images if reused.
-rw-r--r-- | ext/metadata/gstbasemetadata.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/metadata/gstbasemetadata.c b/ext/metadata/gstbasemetadata.c index 4609013b..dd91b2aa 100644 --- a/ext/metadata/gstbasemetadata.c +++ b/ext/metadata/gstbasemetadata.c @@ -1151,8 +1151,8 @@ gst_base_metadata_calculate_offsets (GstBaseMetadata * base) goto done; } - metadata_chunk_array_remove_zero_size (&META_DATA_INJECT_CHUNKS (base-> - metadata)); + metadata_chunk_array_remove_zero_size (&META_DATA_INJECT_CHUNKS + (base->metadata)); metadata_lazy_update (base->metadata); @@ -1420,7 +1420,7 @@ gst_base_metadata_change_state (GstElement * element, GstStateChange transition) switch (transition) { case GST_STATE_CHANGE_PAUSED_TO_READY: gst_base_metadata_reset_streaming (filter); - if (filter->state != MT_STATE_PARSED) + if (filter->state == MT_STATE_PARSED) gst_base_metadata_reset_parsing (filter); break; default: |