[pitivi: 6/12] discoverer: blind fix for subtitle movies never going EOS.
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 6/12] discoverer: blind fix for subtitle movies never going EOS.
- Date: Sun, 7 Mar 2010 17:22:37 +0000 (UTC)
commit 468b144a4b264be4c0636125eb8bf45923033f2e
Author: Alessandro Decina <alessandro d gmail com>
Date: Sat Mar 6 01:28:22 2010 +0100
discoverer: blind fix for subtitle movies never going EOS.
pitivi/discoverer.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/discoverer.py b/pitivi/discoverer.py
index ba8266a..fa24d18 100644
--- a/pitivi/discoverer.py
+++ b/pitivi/discoverer.py
@@ -633,6 +633,10 @@ class Discoverer(Signallable, Loggable):
element.sync_state_with_parent()
def _newPadCb(self, pad):
+ if 'text' in pad.get_caps():
+ self.info("skipping subtitle pad")
+ return
+
self._addPadProbes(pad)
queue = gst.element_factory_make('queue')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]