playback: changes for message API changes

This commit is contained in:
Wim Taymans 2011-06-08 13:43:28 +02:00
parent c092981b16
commit f565812e25
4 changed files with 9 additions and 9 deletions

View file

@ -3631,7 +3631,7 @@ do_async_start (GstDecodeBin * dbin)
dbin->async_pending = TRUE;
message = gst_message_new_async_start (GST_OBJECT_CAST (dbin), FALSE);
message = gst_message_new_async_start (GST_OBJECT_CAST (dbin));
parent_class->handle_message (GST_BIN_CAST (dbin), message);
}
@ -3641,7 +3641,7 @@ do_async_done (GstDecodeBin * dbin)
GstMessage *message;
if (dbin->async_pending) {
message = gst_message_new_async_done (GST_OBJECT_CAST (dbin));
message = gst_message_new_async_done (GST_OBJECT_CAST (dbin), FALSE);
parent_class->handle_message (GST_BIN_CAST (dbin), message);
dbin->async_pending = FALSE;

View file

@ -1041,7 +1041,7 @@ do_async_start (GstPlaySink * playsink)
playsink->async_pending = TRUE;
GST_INFO_OBJECT (playsink, "Sending async_start message");
message = gst_message_new_async_start (GST_OBJECT_CAST (playsink), FALSE);
message = gst_message_new_async_start (GST_OBJECT_CAST (playsink));
GST_BIN_CLASS (gst_play_sink_parent_class)->handle_message (GST_BIN_CAST
(playsink), message);
}
@ -1053,7 +1053,7 @@ do_async_done (GstPlaySink * playsink)
if (playsink->async_pending) {
GST_INFO_OBJECT (playsink, "Sending async_done message");
message = gst_message_new_async_done (GST_OBJECT_CAST (playsink));
message = gst_message_new_async_done (GST_OBJECT_CAST (playsink), FALSE);
GST_BIN_CLASS (gst_play_sink_parent_class)->handle_message (GST_BIN_CAST
(playsink), message);

View file

@ -88,8 +88,7 @@ static void
do_async_start (GstSubtitleOverlay * self)
{
if (!self->do_async) {
GstMessage *msg =
gst_message_new_async_start (GST_OBJECT_CAST (self), FALSE);
GstMessage *msg = gst_message_new_async_start (GST_OBJECT_CAST (self));
GST_DEBUG_OBJECT (self, "Posting async-start");
GST_BIN_CLASS (parent_class)->handle_message (GST_BIN_CAST (self), msg);
@ -101,7 +100,8 @@ static void
do_async_done (GstSubtitleOverlay * self)
{
if (self->do_async) {
GstMessage *msg = gst_message_new_async_done (GST_OBJECT_CAST (self));
GstMessage *msg =
gst_message_new_async_done (GST_OBJECT_CAST (self), FALSE);
GST_DEBUG_OBJECT (self, "Posting async-done");
GST_BIN_CLASS (parent_class)->handle_message (GST_BIN_CAST (self), msg);

View file

@ -835,7 +835,7 @@ do_async_start (GstURIDecodeBin * dbin)
dbin->async_pending = TRUE;
message = gst_message_new_async_start (GST_OBJECT_CAST (dbin), FALSE);
message = gst_message_new_async_start (GST_OBJECT_CAST (dbin));
GST_BIN_CLASS (parent_class)->handle_message (GST_BIN_CAST (dbin), message);
}
@ -846,7 +846,7 @@ do_async_done (GstURIDecodeBin * dbin)
if (dbin->async_pending) {
GST_DEBUG_OBJECT (dbin, "posting ASYNC_DONE");
message = gst_message_new_async_done (GST_OBJECT_CAST (dbin));
message = gst_message_new_async_done (GST_OBJECT_CAST (dbin), FALSE);
GST_BIN_CLASS (parent_class)->handle_message (GST_BIN_CAST (dbin), message);
dbin->async_pending = FALSE;