[gtk/wip/gstmediafile-input] Delay calling gst_player_pause



commit 0ea3449d6dd097d1b38684fe22c9bd39da78f965
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jul 18 12:32:19 2021 -0400

    Delay calling gst_player_pause
    
    Delay calling gst_player_pause until we've set the
    stream on the giostreamsrc. This avoids errors from
    setup.

 modules/media/gtkgstmediafile.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/modules/media/gtkgstmediafile.c b/modules/media/gtkgstmediafile.c
index 6116a2183c..97745a9852 100644
--- a/modules/media/gtkgstmediafile.c
+++ b/modules/media/gtkgstmediafile.c
@@ -243,6 +243,8 @@ gtk_gst_media_file_source_setup_cb (GstElement      *playbin,
   gtk_gst_bin_set_stream (self->src, stream);
 
   g_clear_object (&stream);
+
+  gst_player_pause (self->player);
 }
 
 static void
@@ -288,8 +290,6 @@ gtk_gst_media_file_open (GtkMediaFile *media_file)
   gtk_gst_media_file_create_player (self);
 
   gst_player_set_uri (self->player, "gtk-media-stream://");
-
-  gst_player_pause (self->player);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]