--- /dev/null
+[submodule "common"]
+ path = common
+ url = git://anongit.freedesktop.org/gstreamer/common
--- /dev/null
+Subproject commit de68be0c16181a66f42fad60319e273097f60245
static GstElementClass *parent_class = NULL;
-//static guint gst_ffmpegdec_signals[LAST_SIGNAL] = { 0 };
+/*static guint gst_ffmpegdec_signals[LAST_SIGNAL] = { 0 }; */
static void
gst_ffmpegdec_class_init (GstFFMpegDecClass *klass)
static void
gst_ffmpegdec_chain_audio (GstPad *pad, GstBuffer *inbuf)
{
- //GstFFMpegDec *ffmpegdec = (GstFFMpegDec *)(gst_pad_get_parent (pad));
+ /*GstFFMpegDec *ffmpegdec = (GstFFMpegDec *)(gst_pad_get_parent (pad)); */
gpointer data;
gint size;
else {
goto next;
}
- // construct the type
+ /* construct the type */
type_name = g_strdup_printf("ffmpeg%s_%s", codec_type, in_plugin->name);
- // if it's already registered, drop it
+ /* if it's already registered, drop it */
if (g_type_from_name(type_name)) {
g_free(type_name);
goto next;
}
- // create the gtk type now
+ /* create the gtk type now */
type = g_type_register_static(GST_TYPE_ELEMENT, type_name , &typeinfo, 0);
- // construct the element details struct
+ /* construct the element details struct */
details = g_new0 (GstElementDetails,1);
details->longname = g_strdup (in_plugin->name);
details->klass = "Codec/FFMpeg";
GINT_TO_POINTER (type),
(gpointer) in_plugin);
- // register the plugin with gstreamer
+ /* register the plugin with gstreamer */
factory = gst_elementfactory_new(type_name,type,details);
g_return_val_if_fail(factory != NULL, FALSE);
static GstElementClass *parent_class = NULL;
-//static guint gst_ffmpegenc_signals[LAST_SIGNAL] = { 0 };
+/*static guint gst_ffmpegenc_signals[LAST_SIGNAL] = { 0 }; */
static void
gst_ffmpegenc_class_init (GstFFMpegEncClass *klass)
data += frame_size;
}
- // save leftover
+ /* save leftover */
if (size) {
memcpy (ffmpegenc->buffer + ffmpegenc->buffer_pos, data, size);
ffmpegenc->buffer_pos += size;
else {
goto next;
}
- // construct the type
+ /* construct the type */
type_name = g_strdup_printf("ffmpeg%s_%s", codec_type, in_plugin->name);
- // if it's already registered, drop it
+ /* if it's already registered, drop it */
if (g_type_from_name(type_name)) {
g_free(type_name);
goto next;
}
- // create the gtk type now
+ /* create the gtk type now */
type = g_type_register_static(GST_TYPE_ELEMENT, type_name , &typeinfo, 0);
- // construct the element details struct
+ /* construct the element details struct */
details = g_new0 (GstElementDetails,1);
details->longname = g_strdup (in_plugin->name);
details->klass = "Codec/FFMpeg";
GINT_TO_POINTER (type),
(gpointer) in_plugin);
- // register the plugin with gstreamer
+ /* register the plugin with gstreamer */
factory = gst_elementfactory_new(type_name,type,details);
g_return_val_if_fail(factory != NULL, FALSE);