qtdemux: Minor refactor

Replace repeated code with a function call
This commit is contained in:
Thiago Santos 2010-01-14 19:16:19 -03:00
parent 92a83e016a
commit b988ff4f57

View file

@ -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;