From b988ff4f579fc77220e47b02db79909bce4bde42 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Thu, 14 Jan 2010 19:16:19 -0300 Subject: [PATCH] qtdemux: Minor refactor Replace repeated code with a function call --- gst/qtdemux/qtdemux.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c index 469145cdb1..90e14bc92a 100644 --- a/gst/qtdemux/qtdemux.c +++ b/gst/qtdemux/qtdemux.c @@ -2873,9 +2873,7 @@ pause: if (ret == GST_FLOW_UNEXPECTED) { if (qtdemux->n_streams == 0) { /* we have no streams, post an error */ - GST_ELEMENT_ERROR (qtdemux, STREAM, DECODE, - (_("This file contains no playable streams.")), - ("no known streams found")); + gst_qtdemux_post_no_playable_stream_error (qtdemux); } if (qtdemux->segment.flags & GST_SEEK_FLAG_SEGMENT) { gint64 stop;