Can application get the dynamic information inside the element

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

Can application get the dynamic information inside the element

Chen, Weian

Hi all:

 

If the application wants to get the dynamic information inside an element (such as the file handle opened by filesrc in runtime), how to do?

 

Thanks in advanced.

 

Weian

 


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Can application get the dynamic information inside the element

michael smith-6-3
On Wed, Jan 21, 2009 at 6:00 PM, Chen, Weian <[hidden email]> wrote:
> Hi all:
>
> If the application wants to get the dynamic information inside an element
> (such as the file handle opened by filesrc in runtime), how to do?

The element may expose things via properties.

For your specific question: filesrc does expose the fd it's using (via
an 'fd' property), but it's almost certainly a bad idea to use that
for any purpose. Why do you want to know that?

Mike

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Can application get the dynamic information inside the element

Chen, Weian

Thanks you for your info.

My usage is to open the device in source element, and I want to control it in my application, but I can not open the device twice.

So what's your suggestion?

Weian
-----Original Message-----
From: Michael Smith [mailto:[hidden email]]
Sent: 2009年1月22日 10:18
To: Discussion of the development of GStreamer
Subject: Re: [gst-devel] Can application get the dynamic information inside the element

On Wed, Jan 21, 2009 at 6:00 PM, Chen, Weian <[hidden email]> wrote:
> Hi all:
>
> If the application wants to get the dynamic information inside an element
> (such as the file handle opened by filesrc in runtime), how to do?

The element may expose things via properties.

For your specific question: filesrc does expose the fd it's using (via
an 'fd' property), but it's almost certainly a bad idea to use that
for any purpose. Why do you want to know that?

Mike

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Can application get the dynamic information inside the element

Stefan Sauer
Chen, Weian schrieb:

> Thanks you for your info.
>
> My usage is to open the device in source element, and I want to control it in my application, but I can not open the device twice.
>
> So what's your suggestion?
>
> Weian
> -----Original Message-----
> From: Michael Smith [mailto:[hidden email]]
> Sent: 2009年1月22日 10:18
> To: Discussion of the development of GStreamer
> Subject: Re: [gst-devel] Can application get the dynamic information inside the element
>
> On Wed, Jan 21, 2009 at 6:00 PM, Chen, Weian <[hidden email]> wrote:
>> Hi all:
>>
>> If the application wants to get the dynamic information inside an element
>> (such as the file handle opened by filesrc in runtime), how to do?
>
Thats exactly when a file-descriptor 'fd' property can be used. Just look at
fdsrc element in core.

Stefan


> The element may expose things via properties.
>
> For your specific question: filesrc does expose the fd it's using (via
> an 'fd' property), but it's almost certainly a bad idea to use that
> for any purpose. Why do you want to know that?

>
> Mike
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel