<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=DE link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2
face="Times New Roman"><span style='font-size:10.0pt'>Hi, <br>
<br>
I'm a new gstreamer developer and have a small problem with a simple pipe. If
I'm use the pipe: <br>
&quot;gst-launch-0.10 -m dvbbasebin adapter=1 frequency=12544000
program-numbers=17501 polarity=h symbol-rate=22000 ! tcpserversink
port=8080&quot; <br>
<br>
Then I can see the program (for e.g. with vlc tcp://192.168.1.102:8080) <br>
<br>
If I try to do the same in C-code <br>
-------- <br>
int <br>
main () <br>
{ <br>
&nbsp; GMainLoop *loop; <br>
<br>
&nbsp; GstElement *pipeline, *source, *sink; <br>
&nbsp; GstBus *bus; <br>
<br>
&nbsp; gst_init (NULL, NULL); <br>
<br>
&nbsp; loop = g_main_loop_new (NULL, FALSE); <br>
<br>
&nbsp; pipeline = gst_pipeline_new (&quot;DVB-Streamer&quot;); <br>
&nbsp; source &nbsp; = gst_element_factory_make (&quot;dvbbasebin&quot;, &nbsp;
&nbsp; &nbsp; &quot;dvb-source&quot;); <br>
&nbsp; sink &nbsp; &nbsp; = gst_element_factory_make
(&quot;tcpserversink&quot;, &quot;tcp-output&quot;); <br>
<br>
&nbsp; if (!pipeline || !source || !sink) { <br>
&nbsp; &nbsp; g_printerr (&quot;One element could not be created.
Exiting.\n&quot;); <br>
&nbsp; &nbsp; if(!pipeline) g_printerr(&quot;Pipeline not created\n&quot;); <br>
&nbsp; &nbsp; else if(!source) g_printerr(&quot;Source not created\n&quot;); <br>
&nbsp; &nbsp; else if(!sink) g_printerr(&quot;Sink not created\n&quot;); <br>
&nbsp; &nbsp; return -1; <br>
&nbsp; } <br>
<br>
&nbsp; g_object_set (G_OBJECT (source), &quot;adapter&quot;, 1, NULL); <br>
&nbsp; g_object_set (G_OBJECT (source), &quot;frequency&quot;, 12544000, NULL);
<br>
&nbsp; g_object_set (G_OBJECT (source), &quot;program-numbers&quot;,
&quot;17501&quot;, NULL); <br>
&nbsp; g_object_set (G_OBJECT (source), &quot;polarity&quot;, &quot;h&quot;, NULL);
<br>
&nbsp; g_object_set (G_OBJECT (source), &quot;symbol-rate&quot;, 22000, NULL); <br>
&nbsp; g_object_set (G_OBJECT (sink), &quot;port&quot;, 8080, NULL); <br>
<br>
&nbsp; bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline)); <br>
&nbsp; gst_bus_add_watch (bus, bus_call, loop); <br>
&nbsp; gst_object_unref (bus); <br>
<br>
&nbsp; gst_bin_add_many (GST_BIN (pipeline), <br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; source,
sink, NULL); <br>
<br>
&nbsp; gst_element_link (source, sink); <br>
<br>
&nbsp; g_print (&quot;Now playing: &quot;); <br>
&nbsp; gst_element_set_state (pipeline, GST_STATE_PLAYING); <br>
<br>
&nbsp; g_print (&quot;Running...\n&quot;); <br>
&nbsp; g_main_loop_run (loop); <br>
<br>
&nbsp; return 0; <br>
} <br>
<br>
---- <br>
<br>
I got the error: <br>
<br>
Now playing: Running... <br>
Error: Interner Fehler im Datenfluss. <br>
(sorry for the German error. it's call something like &quot;Internal error in
data stream&quot;) <br>
<br>
<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2
face="Times New Roman"><span style='font-size:10.0pt'>If I don't use the <br>
<br>
g_object_set (G_OBJECT (source), &quot;program-numbers&quot;,
&quot;17501&quot;, NULL); <br>
<br>
It's running well, but I need this parameter<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
10.0pt'><br>
Thanks a lot for helping!! <br>
<br>
<br>
.</span></font><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p></o:p></span></font></p>

</div>

</body>

</html>