[pitivi] Discoverer: fix Picture detection. If we get a duration it's not a static picture.
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi] Discoverer: fix Picture detection. If we get a duration it's not a static picture.
- Date: Wed, 24 Jun 2009 14:03:57 +0000 (UTC)
commit d0ca07b1acea8af106fa103d3e9550cd077e2ec2
Author: Edward Hervey <bilboed bilboed com>
Date: Wed Jun 24 15:49:51 2009 +0200
Discoverer: fix Picture detection. If we get a duration it's not a static picture.
pitivi/discoverer.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/discoverer.py b/pitivi/discoverer.py
index 3b07b80..ccfcf2b 100644
--- a/pitivi/discoverer.py
+++ b/pitivi/discoverer.py
@@ -213,7 +213,7 @@ class Discoverer(Signallable, Loggable):
return True
# construct the factory with the streams we found
- if have_image:
+ if have_image and self.current_duration == gst.CLOCK_TIME_NONE:
factory = PictureFileSourceFactory(self.current_uri)
else:
factory = FileSourceFactory(self.current_uri)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]