mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 07:28:53 +00:00
gst/level/level-example.c: Fix for new bus API.
Original commit message from CVS: * gst/level/level-example.c: (main): Fix for new bus API. * gst/udp/gstudpsrc.c: (gst_udpsrc_set_property): Set caps on pads.
This commit is contained in:
parent
4d3f241eb2
commit
b578f722f9
3 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2005-09-19 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
|
* gst/level/level-example.c: (main):
|
||||||
|
Fix for new bus API.
|
||||||
|
|
||||||
|
* gst/udp/gstudpsrc.c: (gst_udpsrc_set_property):
|
||||||
|
Set caps on pads.
|
||||||
|
|
||||||
2005-09-15 Wim Taymans <wim@fluendo.com>
|
2005-09-15 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* gst/rtp/Makefile.am:
|
* gst/rtp/Makefile.am:
|
||||||
|
|
|
@ -77,7 +77,7 @@ main (int argc, char *argv[])
|
||||||
g_object_set (G_OBJECT (level), "message", TRUE, NULL);
|
g_object_set (G_OBJECT (level), "message", TRUE, NULL);
|
||||||
|
|
||||||
bus = gst_element_get_bus (pipeline);
|
bus = gst_element_get_bus (pipeline);
|
||||||
watch_id = gst_bus_add_watch (bus, message_handler, NULL);
|
watch_id = gst_bus_add_watch (bus, GST_MESSAGE_ANY, message_handler, NULL);
|
||||||
|
|
||||||
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
||||||
|
|
||||||
|
|
|
@ -408,6 +408,7 @@ gst_udpsrc_set_property (GObject * object, guint prop_id, const GValue * value,
|
||||||
old_caps = udpsrc->caps;
|
old_caps = udpsrc->caps;
|
||||||
udpsrc->caps = new_caps;
|
udpsrc->caps = new_caps;
|
||||||
gst_caps_unref (old_caps);
|
gst_caps_unref (old_caps);
|
||||||
|
gst_pad_set_caps (GST_BASE_SRC (udpsrc)->srcpad, new_caps);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue