title: GStreamer: Pipeline working in gst-launch-1.0 command, but not in c++ code
body: <p>I have a pipeline running on my client:</p>
  
  <pre><code>gst-launch-1.0 tcpclientsrc port=3344 host=10.0.0.7 ! tsdemux ! h264parse ! avdec_h264 ! autovideosink
  </code></pre>
  
  <p>which is working perfectly. Now I am trying to transform it to a c++ program, which displays it in a Qt widget using qmlglsink.</p>
  
  <p>I figured out the following, test code, which is working for me:</p>
  
  <pre><code>GstElement *pipeline = gst_pipeline_new(NULL);
  GstElement *src = gst_element_factory_make("videotestsrc",NULL);
  GstElement *glupload = gst_element_factory_make("glupload",NULL);
  GstElement *qmlglsink = gst_element_factory_make("qmlglsink",NULL);
  
  g_assert(src &amp;&amp; glupload &amp;&amp; qmlglsink);
  
  gst_bin_add_many(GST_BIN(pipeline), src, glupload, sink);
  gst_element_link_many(src, glupload, sink, NULL);
  </code></pre>
  
  <p>Now I tried to convert the other pipeline that way:</p>
  
  <pre><code>GstElement *pipeline = gst_pipeline_new(NULL);
  GstElement *src = gst_element_factory_make("tcpclientsrc",NULL);
  GstElement *demuxer = gst_element_factory_make("tsdemux",NULL);
  GstElement *parser = gst_element_factory_make("h264parse",NULL);
  GstElement *decoder = gst_element_factory_make("avdec_h264",NULL);
  GstElement *glupload = gst_element_factory_make("glupload",NULL);
  GstElement *qmlglsink = gst_element_factory_make("qmlglsink",NULL);
  
  g_assert(src &amp;&amp; demuxer &amp;&amp; parser &amp;&amp; decoder &amp;&amp; glupload &amp;&amp; qmlglsink);
  
  g_object_set(G_OBJECT(src), "host", "10.0.0.7", NULL);
  g_object_set(G_OBJECT(src), "port", 3344, NULL);
  
  gst_bin_add_many(GST_BIN(pipeline), src, demuxer, parser, decoder, glupload, sink);
  gst_element_link_many(src, demuxer, parser, decoder, glupload, sink, NULL);
  </code></pre>
  
  <p>But when I run the latter pipeline, it does nothing. No error, but no video stream as well. I think I missed something with the link commands. Please help and tell me what I am doing wrong.</p>