qtdemux: Minor refactor
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Thu, 14 Jan 2010 22:16:19 +0000 (19:16 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Fri, 15 Jan 2010 16:42:30 +0000 (13:42 -0300)
Replace repeated code with a function call

gst/qtdemux/qtdemux.c

index 469145cdb1735944e6cd2c347a80038412262152..90e14bc92a0c7ca2023fa0d55a1705d9b422d617 100644 (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;