<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Hi all,</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">i really need help on this topic as after hours of searching the documentation and google i found no solution for my problem.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">I am using the following code:</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="margin: 0px;"><div id="bloop_customfont" style="margin: 0px;"> gst_bin_add_many(GST_BIN (app.pipeline), app.source, app.demuxer, NULL);</div><div id="bloop_customfont" style="margin: 0px;"> gst_element_link_many(app.source, app.demuxer, NULL);</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;"> if( gst_element_set_state(app.pipeline, GST_STATE_PAUSED) == GST_STATE_CHANGE_FAILURE ) {</div><div id="bloop_customfont" style="margin: 0px;"> printf( "Failed to pause pipeline!\n" );</div><div id="bloop_customfont" style="margin: 0px;"> return 1;</div><div id="bloop_customfont" style="margin: 0px;"> }</div><div id="bloop_customfont" style="margin: 0px;"> gst_element_get_state(app.pipeline, NULL, NULL, GST_CLOCK_TIME_NONE);</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;"> /* Setting up the Pipeline using Segments */</div><div id="bloop_customfont" style="margin: 0px;"> if (!gst_element_seek(app.pipeline, 1.0, GST_FORMAT_TIME,</div><div id="bloop_customfont" style="margin: 0px;"> (GstSeekFlags) (GST_SEEK_FLAG_SEGMENT | GST_SEEK_FLAG_FLUSH),</div><div id="bloop_customfont" style="margin: 0px;"> GST_SEEK_TYPE_SET, 0, GST_SEEK_TYPE_NONE, GST_CLOCK_TIME_NONE)) {</div><div id="bloop_customfont" style="margin: 0px;"> g_printerr("Seek failed!\n");</div><div id="bloop_customfont" style="margin: 0px;"> };</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;"> /* Connect demuxer with decoder pads */</div><div id="bloop_customfont" style="margin: 0px;"> g_signal_connect (app.demuxer, "pad-added", G_CALLBACK(on_pad_added), &app);</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;"> /* If all pads handled we can init the rest of the pipeline */</div><div id="bloop_customfont" style="margin: 0px;"> g_signal_connect (app.demuxer, "no-more-pads", G_CALLBACK(on_no_more_pads), &app);</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;"> gst_element_set_state(app.pipeline, GST_STATE_PLAYING);</div></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">As far as i know this should set up the pipeline to use segments but i never receive a GST_MESSAGE_SEGMENT_DONE on the bus.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Is there anything obvious i am doing wrong?</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Thanks,</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">René</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><br><div id="bloop_sign_1414278804846561792" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px">-- <br>René Calles<br>Sent with Airmail</div></div></body></html>