playbin2: Implement GstStreamVolume interface
This commit is contained in:
parent
723b2baa5d
commit
91c3a23963
@ -225,6 +225,7 @@
|
|||||||
|
|
||||||
#include <gst/gst-i18n-plugin.h>
|
#include <gst/gst-i18n-plugin.h>
|
||||||
#include <gst/pbutils/pbutils.h>
|
#include <gst/pbutils/pbutils.h>
|
||||||
|
#include <gst/interfaces/streamvolume.h>
|
||||||
|
|
||||||
#include "gstplay-enum.h"
|
#include "gstplay-enum.h"
|
||||||
#include "gstplay-marshal.h"
|
#include "gstplay-marshal.h"
|
||||||
@ -581,9 +582,15 @@ gst_play_bin_get_type (void)
|
|||||||
(GInstanceInitFunc) gst_play_bin_init,
|
(GInstanceInitFunc) gst_play_bin_init,
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
static const GInterfaceInfo svol_info = {
|
||||||
|
NULL, NULL, NULL
|
||||||
|
};
|
||||||
|
|
||||||
gst_play_bin_type = g_type_register_static (GST_TYPE_PIPELINE,
|
gst_play_bin_type = g_type_register_static (GST_TYPE_PIPELINE,
|
||||||
"GstPlayBin2", &gst_play_bin_info, 0);
|
"GstPlayBin2", &gst_play_bin_info, 0);
|
||||||
|
|
||||||
|
g_type_add_interface_static (gst_play_bin_type, GST_TYPE_STREAM_VOLUME,
|
||||||
|
&svol_info);
|
||||||
}
|
}
|
||||||
|
|
||||||
return gst_play_bin_type;
|
return gst_play_bin_type;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user