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:
Thiago Santos 2010-01-18 09:06:28 -03:00
parent e7944ddf69
commit 64e9d7f25b

View file

@ -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