From b578f722f9260d7e0fb2b25f511694b8f992b70a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 19 Sep 2005 11:38:10 +0000 Subject: [PATCH] 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. --- ChangeLog | 8 ++++++++ gst/level/level-example.c | 2 +- gst/udp/gstudpsrc.c | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9f600b7229..58bfabd4ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2005-09-19 Wim Taymans + + * 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 * gst/rtp/Makefile.am: diff --git a/gst/level/level-example.c b/gst/level/level-example.c index dcfdec0cfd..6aac1a5dc8 100644 --- a/gst/level/level-example.c +++ b/gst/level/level-example.c @@ -77,7 +77,7 @@ main (int argc, char *argv[]) g_object_set (G_OBJECT (level), "message", TRUE, NULL); 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); diff --git a/gst/udp/gstudpsrc.c b/gst/udp/gstudpsrc.c index e462591153..3c95ee609c 100644 --- a/gst/udp/gstudpsrc.c +++ b/gst/udp/gstudpsrc.c @@ -408,6 +408,7 @@ gst_udpsrc_set_property (GObject * object, guint prop_id, const GValue * value, old_caps = udpsrc->caps; udpsrc->caps = new_caps; gst_caps_unref (old_caps); + gst_pad_set_caps (GST_BASE_SRC (udpsrc)->srcpad, new_caps); break; } default: -- 2.34.1