<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I've been working on using an input-selector and ran into a strange
problem. If I connect directly to the input-selector, everything is
fine:<br>
<blockquote type="cite"><tt>$ gst-git gst-launch-1.0 videotestsrc !
input-selector ! autovideosink</tt><tt><br>
</tt><tt>Setting pipeline to PAUSED ...</tt><tt><br>
</tt><tt>Pipeline is PREROLLING ...</tt><tt><br>
</tt><tt>Pipeline is PREROLLED ...</tt><tt><br>
</tt><tt>Setting pipeline to PLAYING ...</tt><tt><br>
</tt><tt>New clock: GstSystemClock</tt><tt><br>
</tt><tt>ERROR: from element
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXImageSink:autovideosink0-actual-sink-ximage:
Output window was closed</tt><tt><br>
</tt><tt>Additional debug info:</tt><tt><br>
</tt><tt>ximagesink.c(686): gst_ximagesink_handle_xevents ():
/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXImageSink:autovideosink0-actual-sink-ximage</tt><tt><br>
</tt><tt>Execution ended after 0:00:02.106750438</tt><tt><br>
</tt><tt>Setting pipeline to PAUSED ...</tt><tt><br>
</tt><tt>Setting pipeline to READY ...</tt><tt><br>
</tt><tt>Setting pipeline to NULL ...</tt><tt><br>
</tt><tt>Freeing pipeline ...</tt><br>
</blockquote>
But if I put a queue before the input-selector, it fails:<br>
<blockquote type="cite"><tt>$ gst-git gst-launch-1.0 videotestsrc !
queue ! input-selector ! autovideosink<br>
Setting pipeline to PAUSED ...</tt><tt><br>
</tt><tt>Pipeline is PREROLLING ...</tt><tt><br>
</tt><tt>ERROR: from element
/GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0: Internal
data flow error.</tt><tt><br>
</tt><tt>Additional debug info:</tt><tt><br>
</tt><tt>gstbasesrc.c(2814): gst_base_src_loop ():
/GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:</tt><tt><br>
</tt><b><tt>streaming task paused, reason not-negotiated (-4)</tt></b><tt><br>
</tt><tt>ERROR: pipeline doesn't want to preroll.</tt><tt><br>
</tt><tt>Setting pipeline to NULL ...</tt><tt><br>
</tt><tt>Freeing pipeline ...</tt></blockquote>
It turns out I don't need the queue, but I'm confused about what's
causing the problem. Is this a bug or am I doing something wrong
(besides just being wasteful)?<br>
</body>
</html>