gtkffmediafile: Fix deprecated API usage

This commit is contained in:
Timm Bäder 2021-07-02 18:41:55 +02:00
parent 3e63e683a9
commit 106417ada7

View File

@ -632,7 +632,7 @@ gtk_ff_media_file_next_frame_cb (gpointer data)
if (!gtk_media_stream_get_loop (GTK_MEDIA_STREAM (video)) ||
!gtk_ff_media_file_restart (video))
{
gtk_media_stream_ended (GTK_MEDIA_STREAM (video));
gtk_media_stream_set_ended (GTK_MEDIA_STREAM (video));
return G_SOURCE_REMOVE;
}
@ -733,7 +733,7 @@ gtk_ff_media_file_seek (GtkMediaStream *stream,
{
gtk_ff_media_file_pause (stream);
if (!gtk_ff_media_file_play (stream))
gtk_media_stream_ended (stream);
gtk_media_stream_set_ended (stream);
}
}