summaryrefslogtreecommitdiff
path: root/modules/media/gtkgstmediafile.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/media/gtkgstmediafile.c')
-rw-r--r--modules/media/gtkgstmediafile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/media/gtkgstmediafile.c b/modules/media/gtkgstmediafile.c
index 93162eae5b..afbf637bd3 100644
--- a/modules/media/gtkgstmediafile.c
+++ b/modules/media/gtkgstmediafile.c
@@ -245,6 +245,9 @@ gtk_gst_media_file_play (GtkMediaStream *stream)
{
GtkGstMediaFile *self = GTK_GST_MEDIA_FILE (stream);
+ if (self->player == NULL)
+ return FALSE;
+
gst_player_play (self->player);
return TRUE;