<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>
"gst-launch-0.10 -m dvbbasebin adapter=1 frequency=12544000
program-numbers=17501 polarity=h symbol-rate=22000 ! tcpserversink
port=8080" <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>
GMainLoop *loop; <br>
<br>
GstElement *pipeline, *source, *sink; <br>
GstBus *bus; <br>
<br>
gst_init (NULL, NULL); <br>
<br>
loop = g_main_loop_new (NULL, FALSE); <br>
<br>
pipeline = gst_pipeline_new ("DVB-Streamer"); <br>
source = gst_element_factory_make ("dvbbasebin",
"dvb-source"); <br>
sink = gst_element_factory_make
("tcpserversink", "tcp-output"); <br>
<br>
if (!pipeline || !source || !sink) { <br>
g_printerr ("One element could not be created.
Exiting.\n"); <br>
if(!pipeline) g_printerr("Pipeline not created\n"); <br>
else if(!source) g_printerr("Source not created\n"); <br>
else if(!sink) g_printerr("Sink not created\n"); <br>
return -1; <br>
} <br>
<br>
g_object_set (G_OBJECT (source), "adapter", 1, NULL); <br>
g_object_set (G_OBJECT (source), "frequency", 12544000, NULL);
<br>
g_object_set (G_OBJECT (source), "program-numbers",
"17501", NULL); <br>
g_object_set (G_OBJECT (source), "polarity", "h", NULL);
<br>
g_object_set (G_OBJECT (source), "symbol-rate", 22000, NULL); <br>
g_object_set (G_OBJECT (sink), "port", 8080, NULL); <br>
<br>
bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline)); <br>
gst_bus_add_watch (bus, bus_call, loop); <br>
gst_object_unref (bus); <br>
<br>
gst_bin_add_many (GST_BIN (pipeline), <br>
source,
sink, NULL); <br>
<br>
gst_element_link (source, sink); <br>
<br>
g_print ("Now playing: "); <br>
gst_element_set_state (pipeline, GST_STATE_PLAYING); <br>
<br>
g_print ("Running...\n"); <br>
g_main_loop_run (loop); <br>
<br>
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 "Internal error in
data stream") <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), "program-numbers",
"17501", 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>