mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-02 06:31:08 +00:00
python: Do not pop tags in discoverer.py
Do not use pop on dicts because it destroys the tags info. Fixes #592459
This commit is contained in:
parent
e7944ddf69
commit
64e9d7f25b
1 changed files with 2 additions and 2 deletions
|
@ -221,7 +221,7 @@ class Discoverer(gst.Pipeline):
|
||||||
self.videoheight,
|
self.videoheight,
|
||||||
self.videorate.num, self.videorate.denom)
|
self.videorate.num, self.videorate.denom)
|
||||||
if self.tags.has_key("video-codec"):
|
if self.tags.has_key("video-codec"):
|
||||||
print "\tCodec :", self.tags.pop("video-codec")
|
print "\tCodec :", self.tags["video-codec"]
|
||||||
if self.is_audio:
|
if self.is_audio:
|
||||||
print "Audio :"
|
print "Audio :"
|
||||||
if self.audiofloat:
|
if self.audiofloat:
|
||||||
|
@ -233,7 +233,7 @@ class Discoverer(gst.Pipeline):
|
||||||
self.audiorate,
|
self.audiorate,
|
||||||
self.audiodepth)
|
self.audiodepth)
|
||||||
if self.tags.has_key("audio-codec"):
|
if self.tags.has_key("audio-codec"):
|
||||||
print "\tCodec :", self.tags.pop("audio-codec")
|
print "\tCodec :", self.tags["audio-codec"]
|
||||||
for stream in self.otherstreams:
|
for stream in self.otherstreams:
|
||||||
if not stream == self.mimetype:
|
if not stream == self.mimetype:
|
||||||
print "Other unsuported Multimedia stream :", stream
|
print "Other unsuported Multimedia stream :", stream
|
||||||
|
|
Loading…
Reference in a new issue