[transmageddon] fix the handling of image based video formats like jpeg/jp2k
- From: Christian Fredrik Kalager Schaller <uraeus src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [transmageddon] fix the handling of image based video formats like jpeg/jp2k
- Date: Tue, 10 Nov 2009 15:43:48 +0000 (UTC)
commit 35bc65167930099f704637b5c19b39b4128ce734
Author: Christian F.K. Schaller <christian schaller collabora co uk>
Date: Tue Nov 10 15:42:59 2009 +0000
fix the handling of image based video formats like jpeg/jp2k
src/discoverer.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/discoverer.py b/src/discoverer.py
index 6c572a1..7ee372a 100644
--- a/src/discoverer.py
+++ b/src/discoverer.py
@@ -316,6 +316,7 @@ class Discoverer(gst.Pipeline):
else:
# print "autoplug continue returns " + str(caps)
c = caps[0].get_name()
+ # print "c is " + str(c)
if c.startswith("audio/"):
if c.startswith("audio/x-raw") == False:
# print "discoverer: c is audio " + str(c)
@@ -331,7 +332,7 @@ class Discoverer(gst.Pipeline):
aresult += ","+attr+"="+str(caps[0][attr])
self.inputaudiocaps = aresult
# print "discoverer: self.inputaudiocaps " + str(self.inputaudiocaps)
- elif c.startswith("video/"):
+ elif c.startswith("video/") or c.startswith("image/"):
if c.startswith("video/x-raw-yuv") == False or c.startswith("video/x-raw-rgb") == False:
if caps.is_fixed():
blacklist = ['height','width','framerate','depth','codec_data','pixel-aspect-ratio','format']
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]