SHM sink waiting for connection

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

SHM sink waiting for connection

Takido
Hello,

I managed to extract a stream from Gstreamer using shmsink, and it works correctly when the property "wait-for-connection" is set to false.
I'd like the property to be set to true so that the stream starts only when I want it to start. However, when I set it to true, the stream never starts. I saw that there is something to do with signals (client-connected) but how can I emit such a signal from a non-gstreamer application ?

Thanks.
Hamza
Reply | Threaded
Open this post in threaded view
|

Re: SHM sink waiting for connection

Olivier Crête-3
On Tue, 2012-07-24 at 05:55 -0700, Takido wrote:
> I managed to extract a stream from Gstreamer using shmsink, and it works
> correctly when the property "wait-for-connection" is set to false.
> I'd like the property to be set to true so that the stream starts only when
> I want it to start. However, when I set it to true, the stream never starts.
> I saw that there is something to do with signals (client-connected) but how
> can I emit such a signal from a non-gstreamer application ?

The "client-connected" signal is just informative for the application.
Did you copy shmpipe.[ch] into your own application? Or are you using
some other mechanism? If "wait-for-connection" is true, the sink should
unblock as soon as at least one client is connected.

--
Olivier Crête
[hidden email]

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: SHM sink waiting for connection

Takido
Yes, I did exactly what is written in the header of shmpipe.h.
I don't understand why it doesn't work as it should. Well, if I don't find any solution to this problem, I'll just make the client connect as soon as the stream starts, but it's not the best way..

2012/7/24 Olivier Crête <[hidden email]>
On Tue, 2012-07-24 at 05:55 -0700, Takido wrote:
> I managed to extract a stream from Gstreamer using shmsink, and it works
> correctly when the property "wait-for-connection" is set to false.
> I'd like the property to be set to true so that the stream starts only when
> I want it to start. However, when I set it to true, the stream never starts.
> I saw that there is something to do with signals (client-connected) but how
> can I emit such a signal from a non-gstreamer application ?

The "client-connected" signal is just informative for the application.
Did you copy shmpipe.[ch] into your own application? Or are you using
some other mechanism? If "wait-for-connection" is true, the sink should
unblock as soon as at least one client is connected.

--
Olivier Crête
[hidden email]

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel