send event to one of two pipelines inside one code

leon dudi.reuveni at comm-it.co.il
Tue Mar 25 23:46:06 PDT 2014


cheers,

I have a question about events,

there are two pipelines  inside my code- transmitter and receiver
(loopback).


the transmitter (pipe1):

 filesrc location=file.pcap ! pcapparse src-port=56496 ! "application/x-rtp,
payload=(int)96, media=(string)video, clock-rate=(int)90000,
encoding-name=(string)H264" ! udpsink port=5000

the receiver (pipe2):

 udpsrc uri=udp://localhost:5000 ! "application/x-rtp, media=(string)video,
clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" !
gstrtpjitterbuffer latency=1000 ! decodebin2 ! autovideosink

the pipelines not connected and when I want to run the code, this is the
commands:

/* Start playing */
  gst_element_set_state (pipe2, GST_STATE_PLAYING);
  gst_element_set_state (pipe1, GST_STATE_PLAYING);

I can see the video, but when I send seek event to the second pipeline, the
seek faild and the video continues to run:

1. gst_element_query_position (data->pipe2, &format, &position)
2. seek_event = gst_event_new_seek (data->rate, GST_FORMAT_TIME,
GST_SEEK_FLAG_FLUSH |  GST_SEEK_FLAG_ACCURATE, GST_SEEK_TYPE_SET, position ,
GST_SEEK_TYPE_SET, -1);
3. gst_element_send_event (data->pipe2, seek_event)

is the event somehow sent also to pipe1 event if I send it to pipe2?
is the problem with one of the elements in pipe2?
I cant figure it out why the event doesn't effect on pipe2 (the receiver)..


I will be happy for clarification about the event..
thanks!



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/send-event-to-one-of-two-pipelines-inside-one-code-tp4666111.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list