player: remove duplicate state_ret check in play internal

https://bugzilla.gnome.org/show_bug.cgi?id=787727
This commit is contained in:
Philippe Renon 2017-09-15 14:58:56 +02:00 committed by Sebastian Dröge
parent 1874d01eda
commit 9fce29497d

View file

@ -3086,11 +3086,6 @@ gst_player_play_internal (gpointer user_data)
state_ret = gst_element_set_state (self->playbin, GST_STATE_PAUSED);
}
if (state_ret == GST_STATE_CHANGE_NO_PREROLL) {
self->is_live = TRUE;
GST_DEBUG_OBJECT (self, "Pipeline is live");
}
if (state_ret == GST_STATE_CHANGE_FAILURE) {
emit_error (self, g_error_new (GST_PLAYER_ERROR, GST_PLAYER_ERROR_FAILED,
"Failed to play"));