GstSplitMuxSink in C

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

GstSplitMuxSink in C

Yaroslav
This post was updated on .
Hi,

I try to use "format-location" signal of GstSplitMuxSink:

g_signal_connect(splitmuxsink, "format-location",
                    G_CALLBACK (on_format_location), NULL);
...

gchar* on_format_location(GstSplitMuxSink *splitmux, guint fragment_id,
            gpointer user_data);

But see that:

error: unknown type name ‘GstSplitMuxSink’

I include gst/gst.h in .c file, but this is not enough. To my opinion i need to include something like gst/gstsplitmuxsink.h, but "fatal error: gst/gstsplitmuxsink.h: No such file or directory"

(I use GStreamer 1.8.0 and think that I have gst-plugins-good (gst-inspect-1.0 | grep splitmuxsink -> multifile: splitmuxsink: Split Muxing Bin))
Reply | Threaded
Open this post in threaded view
|

Re: GstSplitMuxSink in C

Tim Müller
On Wed, 2016-06-01 at 04:21 -0700, Yaroslav wrote:

Hi,

> I try to use "format-location" signal of GstSplitMuxSink:
>
> /g_signal_connect(splitmuxsink, "format-location",
>                     G_CALLBACK (on_format_location), NULL);
> ...
>
> gchar* on_format_location(GstSplitMuxSink *splitmux, guint
> fragment_id,
>             gpointer user_data);
> /
> But see that:
>
> /error: unknown type name ‘GstSplitMuxSink’/
>
> I include gst/gst.h in .c file, but this is not enough. To my opinion
> i need
> to include something like gst/gstsplitmuxsink.h, but "fatal error:
> gst/gstsplitmuxsink.h: No such file or directory"

The plugin headers are not public. You can't include them.

Just use GstElement * splitmux instead.

Also see

$ gst-inspect-1.0 splitmuxsink

Element Signals:

  "format-location" :  gchararray user_function (GstElement* object,
                                                 guint arg0,
                                                 gpointer user_data);

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: GstSplitMuxSink in C

Yaroslav
Thanks, Tim!
I used documentation from gstreamer.freedesktop.orgwhich:
gchar*
user_function (GstSplitMuxSink *splitmux,
               guint            fragment_id,
               gpointer         user_data)