Assertion error on MediaFile create from InputStream

Trying to create MediaFile for InputStream

MediaFile::for_input_stream(&connection.input_stream())

But get following error:

GLib-GIO-CRITICAL **: 20:33:48.562: g_file_get_uri: assertion 'G_IS_FILE (file)' failed
GStreamer-CRITICAL **: 20:33:48.562: gst_uri_is_valid: assertion 'uri != NULL' failed
GLib-CRITICAL **: 20:33:48.562: g_str_has_prefix: assertion 'str != NULL' failed

Not sure, maybe it’s my mistake with header bytes offset, but everything works when I’m creating new Pixbuf from same stream in other condition.

Fedora 41, maybe I forgot to install some library to add ogg/mpeg media formats support…

Well, it seems I misunderstand the subject: this method using to create MediaFile for InputStream not for reading from there :grinning:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.