MPEG-TS stuff

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

MPEG-TS stuff

Russel Winder
The manual states that gst_mpegts_initialize must be called before any MPEG-
TS activity, yet MPEG-TS using code seems to behave the same with or without
the call.

Is it that the call happens implicitly, or that the manually is not telling
the entire truth?
 
--
Russel.
=============================================================================
Dr Russel Winder     t:+44 20 7585 2200   voip:sip:
[hidden email]
41 Buckmaster Road   m:+44 7770 465 077   xmpp:[hidden email]
London SW11 1EN, UK  w: www.russel.org.uk skype:russel_winder
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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

Re: MPEG-TS stuff

Tim Müller
On Mon, 2016-03-21 at 21:48 +0000, Russel Winder wrote:

> The manual states that gst_mpegts_initialize must be called before
> any MPEG- TS activity, yet MPEG-TS using code seems to behave the
> same with or without the call.
>
> Is it that the call happens implicitly, or that the manually is not
> telling the entire truth?

Hard to say with more details. What 'MPEG-TS using code' seems to
behave the same? You can run it in gdb and set a breakpoint to see if
it gets loaded without your doing by certain plugins that you use

The manual describes a requirement, call it an "API contract" if you
like. You must call this function before using any of the library API.
If you don't, and things don't work, that's your problem then. Even if
something works now, it might be changed in future in a way that
requires you to call the init function first.

Cheers
 -Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.com


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: MPEG-TS stuff

Russel Winder
On Mon, 2016-03-21 at 22:03 +0000, Tim Müller wrote:

> […]
> Hard to say with more details. What 'MPEG-TS using code' seems to
> behave the same? You can run it in gdb and set a breakpoint to see if
> it gets loaded without your doing by certain plugins that you use
>
> The manual describes a requirement, call it an "API contract" if you
> like. You must call this function before using any of the library API.
> If you don't, and things don't work, that's your problem then. Even if
> something works now, it might be changed in future in a way that
> requires you to call the init function first.
Apologies I was being imprecise. My excuse is I am rushing and trying to
keep messages small. 

I use a playbin to do all the hardwork, I guess it organizes the call to
gst_mpegts_initialize when it recognizes an MPEG-TS stream on the input.

--
Russel.
=============================================================================
Dr Russel Winder     t:+44 20 7585 2200   voip:sip:
[hidden email]
41 Buckmaster Road   m:+44 7770 465 077   xmpp:[hidden email]
London SW11 1EN, UK  w: www.russel.org.uk skype:russel_winder
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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

Re: MPEG-TS stuff

Edward Hervey-4
Hi,

  If you (or your application) don't use directly any of the gst-
plugins-bad mpegts library API, you don't need to do anything.

   Edward


On Mon, 2016-03-21 at 22:17 +0000, Russel Winder wrote:

> On Mon, 2016-03-21 at 22:03 +0000, Tim Müller wrote:
> >
> >  […]
> > Hard to say with more details. What 'MPEG-TS using code' seems to
> > behave the same? You can run it in gdb and set a breakpoint to see
> > if
> > it gets loaded without your doing by certain plugins that you use
> >
> > The manual describes a requirement, call it an "API contract" if
> > you
> > like. You must call this function before using any of the library
> > API.
> > If you don't, and things don't work, that's your problem then. Even
> > if
> > something works now, it might be changed in future in a way that
> > requires you to call the init function first.
> Apologies I was being imprecise. My excuse is I am rushing and trying
> to
> keep messages small. 
>
> I use a playbin to do all the hardwork, I guess it organizes the call
> to
> gst_mpegts_initialize when it recognizes an MPEG-TS stream on the
> input.
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: MPEG-TS stuff

Russel Winder
On Tue, 2016-03-22 at 10:56 +0100, Edward Hervey wrote:
> Hi,
>
>   If you (or your application) don't use directly any of the gst-
> plugins-bad mpegts library API, you don't need to do anything.
>

Good to know, and subtly different from what the manual implied to me. I
guess I should take a look at the wording and possible make a pull request
with a slightly different working to avoid ambiguity. Of course it may
already be unambiguous and I just misread it.
 

--
Russel.
=============================================================================
Dr Russel Winder     t:+44 20 7585 2200   voip:sip:
[hidden email]
41 Buckmaster Road   m:+44 7770 465 077   xmpp:[hidden email]
London SW11 1EN, UK  w: www.russel.org.uk skype:russel_winder


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

signature.asc (836 bytes) Download Attachment