dont try to detect anything if files is empty
This commit is contained in:
parent
9f489d306b
commit
ca83c75a9e
1 changed files with 24 additions and 24 deletions
|
@ -35,7 +35,7 @@ class Info:
|
||||||
self.dbin = self.pipeline.get_by_name('dbin')
|
self.dbin = self.pipeline.get_by_name('dbin')
|
||||||
|
|
||||||
self.metadata['size'] = os.stat(videofile).st_size
|
self.metadata['size'] = os.stat(videofile).st_size
|
||||||
|
if self.metadata['size'] != 0:
|
||||||
self.bus = self.pipeline.get_bus()
|
self.bus = self.pipeline.get_bus()
|
||||||
self.dbin.connect('new-decoded-pad', self.demux_pad_added)
|
self.dbin.connect('new-decoded-pad', self.demux_pad_added)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue