diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-07-25 06:17:26 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-07-25 06:17:26 +0200 |
commit | 77dd64c0757c0191b276e65c24ee9874959790c8 (patch) | |
tree | d6cdf2a02bad676982aa9f962835bb405d86a87b /raphodo/thumbnailextractor.py | |
parent | 083849161f075878e4175cd03cb7afa83d64e7f5 (diff) |
New upstream version 0.9.1upstream/0.9.1
Diffstat (limited to 'raphodo/thumbnailextractor.py')
-rwxr-xr-x | raphodo/thumbnailextractor.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/raphodo/thumbnailextractor.py b/raphodo/thumbnailextractor.py index 27c8089..74e63db 100755 --- a/raphodo/thumbnailextractor.py +++ b/raphodo/thumbnailextractor.py @@ -152,9 +152,13 @@ def get_video_frame(full_file_name: str, try: assert pipeline.seek_simple(Gst.Format.TIME, Gst.SeekFlags.FLUSH, offset) except AssertionError: + logging.warning( + 'seek_simple() failed for %s. Is the necessary gstreamer plugin installed for this ' + 'file format?', full_file_name + ) return None # Wait for seek to finish. - pipeline.get_state(Gst.CLOCK_TIME_NONE) + pipeline.get_state(Gst.CLOCK_TIME_NONE) # alternative is Gst.SECOND * 10 sample = pipeline.emit('convert-sample', caps) if sample is not None: buffer = sample.get_buffer() |