-
Notifications
You must be signed in to change notification settings - Fork 686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Find images in audio files #1472
Conversation
Handle Gst.Sample as image in audio file tags (scaned with Gst1.0).
Always unmap the mapped memory, even in case of exception.
The |
@@ -53,6 +53,14 @@ def convert_taglist(taglist): | |||
result[tag].append(value.decode('utf-8', 'replace')) | |||
elif isinstance(value, (compat.text_type, bool, numbers.Number)): | |||
result[tag].append(value) | |||
elif isinstance(value, Gst.Sample): | |||
buf = value.get_buffer() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://lazka.github.io/pgi-docs/#Gst-1.0/structs/Sample.html#Gst.Sample.get_buffer says get_buffer()
can return None
, code should probably check for that.
Addressing the one comment myself and merging this into the release-2.0 branch. |
And I have a 14.04 machine myself, so will take a quick look at that. |
Pushed your cherry-picked changes pluss a few extra changes to the release-2.0 branch. |
793e425 works around the warnings for old GStreamer python bindings. |
Handle Gst.Sample as image in audio file tags (scanned with Gst1.0).
Fixes #1469
This patch works well on my RPi with raspbian.
On my Ubuntu 14.04 the
Gst.Buffer.map()
fail with a c error.Any Idea? Corrupted Ubuntu?