mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
qtdemux: Minor refactor
Replace repeated code with a function call
This commit is contained in:
parent
92a83e016a
commit
b988ff4f57
1 changed files with 1 additions and 3 deletions
|
@ -2873,9 +2873,7 @@ pause:
|
||||||
if (ret == GST_FLOW_UNEXPECTED) {
|
if (ret == GST_FLOW_UNEXPECTED) {
|
||||||
if (qtdemux->n_streams == 0) {
|
if (qtdemux->n_streams == 0) {
|
||||||
/* we have no streams, post an error */
|
/* we have no streams, post an error */
|
||||||
GST_ELEMENT_ERROR (qtdemux, STREAM, DECODE,
|
gst_qtdemux_post_no_playable_stream_error (qtdemux);
|
||||||
(_("This file contains no playable streams.")),
|
|
||||||
("no known streams found"));
|
|
||||||
}
|
}
|
||||||
if (qtdemux->segment.flags & GST_SEEK_FLAG_SEGMENT) {
|
if (qtdemux->segment.flags & GST_SEEK_FLAG_SEGMENT) {
|
||||||
gint64 stop;
|
gint64 stop;
|
||||||
|
|
Loading…
Reference in a new issue