gstmediafile: improve error message when there is an input stream.

Previously it was unclear why passing an input stream would crash a video,
unless you went into the source and read it.

This adds a clarifying message that only file based media files are supported.
This commit is contained in:
nee 2024-09-27 07:33:01 +02:00
parent 10fa570195
commit 0c97c86573

View File

@ -287,6 +287,7 @@ gtk_gst_media_file_open (GtkMediaFile *media_file)
else
{
/* It's an input stream */
g_error ("Input Streams are currently not supported. Please pass a File based MediaFile.");
g_assert_not_reached ();
}