Skip to content
This repository has been archived by the owner on Mar 10, 2019. It is now read-only.

Commit

Permalink
xfade: check if a probe has been added before removing it
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Matthew committed Apr 26, 2017
1 parent 96e1f98 commit 24ac42b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions backends/gstreamer/rb-player-gst-xfade.c
Original file line number Diff line number Diff line change
Expand Up @@ -1131,8 +1131,10 @@ link_and_unblock_stream (RBXFadeStream *stream, GError **error)
if (stream->src_blocked) {
GstStateChangeReturn state_ret;

gst_pad_remove_probe (stream->src_pad, stream->block_probe_id);
stream->block_probe_id = 0;
if (stream->block_probe_id != 0) {
gst_pad_remove_probe (stream->src_pad, stream->block_probe_id);
stream->block_probe_id = 0;
}

rb_debug ("stream %s is unblocked -> FADING_IN | PLAYING", stream->uri);
stream->src_blocked = FALSE;
Expand Down

0 comments on commit 24ac42b

Please sign in to comment.