mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
gst/qtdemux/qtdemux.c: Remove 'got-redirect' signal and post element message on the bus instead.
Original commit message from CVS: * gst/qtdemux/qtdemux.c: (gst_qtdemux_class_init), (qtdemux_parse_tree): Remove 'got-redirect' signal and post element message on the bus instead.
This commit is contained in:
parent
72818f871d
commit
c689aeb5fd
2 changed files with 15 additions and 21 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2005-10-27 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* gst/qtdemux/qtdemux.c: (gst_qtdemux_class_init),
|
||||||
|
(qtdemux_parse_tree):
|
||||||
|
Remove 'got-redirect' signal and post element message
|
||||||
|
on the bus instead.
|
||||||
|
|
||||||
2005-10-26 Zeeshan Ali <zeenix@gmail.com>
|
2005-10-26 Zeeshan Ali <zeenix@gmail.com>
|
||||||
|
|
||||||
* ext/gsm/gstgsm.c:
|
* ext/gsm/gstgsm.c:
|
||||||
|
|
|
@ -117,17 +117,6 @@ static GstElementDetails gst_qtdemux_details = {
|
||||||
"David Schleef <ds@schleef.org>"
|
"David Schleef <ds@schleef.org>"
|
||||||
};
|
};
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
SIGNAL_REDIRECT,
|
|
||||||
LAST_SIGNAL
|
|
||||||
};
|
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
ARG_0
|
|
||||||
};
|
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_qtdemux_sink_template =
|
static GstStaticPadTemplate gst_qtdemux_sink_template =
|
||||||
GST_STATIC_PAD_TEMPLATE ("sink",
|
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
GST_PAD_SINK,
|
GST_PAD_SINK,
|
||||||
|
@ -147,7 +136,6 @@ GST_STATIC_PAD_TEMPLATE ("video_%02d",
|
||||||
GST_PAD_SOMETIMES,
|
GST_PAD_SOMETIMES,
|
||||||
GST_STATIC_CAPS_ANY);
|
GST_STATIC_CAPS_ANY);
|
||||||
|
|
||||||
static guint qt_signals[LAST_SIGNAL] = { 0 };
|
|
||||||
static GstElementClass *parent_class = NULL;
|
static GstElementClass *parent_class = NULL;
|
||||||
|
|
||||||
static void gst_qtdemux_class_init (GstQTDemuxClass * klass);
|
static void gst_qtdemux_class_init (GstQTDemuxClass * klass);
|
||||||
|
@ -225,13 +213,7 @@ gst_qtdemux_class_init (GstQTDemuxClass * klass)
|
||||||
gobject_class = (GObjectClass *) klass;
|
gobject_class = (GObjectClass *) klass;
|
||||||
gstelement_class = (GstElementClass *) klass;
|
gstelement_class = (GstElementClass *) klass;
|
||||||
|
|
||||||
parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
qt_signals[SIGNAL_REDIRECT] = g_signal_new ("got-redirect",
|
|
||||||
G_TYPE_FROM_CLASS (gobject_class), G_SIGNAL_RUN_LAST,
|
|
||||||
G_STRUCT_OFFSET (GstQTDemuxClass, got_redirect),
|
|
||||||
NULL, NULL, g_cclosure_marshal_VOID__STRING,
|
|
||||||
G_TYPE_NONE, 1, G_TYPE_STRING);
|
|
||||||
|
|
||||||
gstelement_class->change_state = gst_qtdemux_change_state;
|
gstelement_class->change_state = gst_qtdemux_change_state;
|
||||||
}
|
}
|
||||||
|
@ -1817,9 +1799,14 @@ qtdemux_parse_tree (GstQTDemux * qtdemux)
|
||||||
if (rmra) {
|
if (rmra) {
|
||||||
rdrf = qtdemux_tree_get_child_by_type (rmda, FOURCC_rdrf);
|
rdrf = qtdemux_tree_get_child_by_type (rmda, FOURCC_rdrf);
|
||||||
if (rdrf) {
|
if (rdrf) {
|
||||||
|
GstStructure *s;
|
||||||
|
GstMessage *msg;
|
||||||
|
|
||||||
GST_LOG ("New location: %s", (char *) rdrf->data + 20);
|
GST_LOG ("New location: %s", (char *) rdrf->data + 20);
|
||||||
g_signal_emit (qtdemux, qt_signals[SIGNAL_REDIRECT], 0,
|
s = gst_structure_new ("redirect", "new-location", G_TYPE_STRING,
|
||||||
(char *) rdrf->data + 20);
|
(char *) rdrf->data + 20, NULL);
|
||||||
|
msg = gst_message_new_element (GST_OBJECT (qtdemux), s);
|
||||||
|
gst_element_post_message (GST_ELEMENT (qtdemux), msg);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue