diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-07-25 06:18:18 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-07-25 06:18:18 +0200 |
commit | 832bc8c8e85c075edf559a32400d86183e985728 (patch) | |
tree | 80346180eb02de40c8342055bbd1f22055640d84 /raphodo/thumbnailextractor.py | |
parent | 049849cac97ff5fa2e2b12503702fe52a115182c (diff) | |
parent | 77dd64c0757c0191b276e65c24ee9874959790c8 (diff) |
Updated version 0.9.1 from 'upstream/0.9.1'
with Debian dir df52fe78cbe3481a4d64083df8ec468669b4bd47
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() |