gst/playback/gstplaybin.c: Make getting the current frame thread-safe.

Original commit message from CVS:
* gst/playback/gstplaybin.c: (gst_play_bin_get_property):
Make getting the current frame thread-safe.
This commit is contained in:
Tim-Philipp Müller 2007-01-25 12:06:59 +00:00
parent 77cf01b76b
commit d289e2d55c
2 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2007-01-25 Tim-Philipp Müller <tim at centricular dot net>
* gst/playback/gstplaybin.c: (gst_play_bin_get_property):
Make getting the current frame thread-safe.
2007-01-25 Edward Hervey <edward@fluendo.com>
* gst/playback/gstdecodebin2.c: (gst_decode_bin_finalize),

View file

@ -759,9 +759,13 @@ gst_play_bin_get_property (GObject * object, guint prop_id, GValue * value,
case ARG_VOLUME:
g_value_set_double (value, play_bin->volume);
break;
case ARG_FRAME:
gst_value_set_mini_object (value, GST_MINI_OBJECT (play_bin->frame));
case ARG_FRAME:{
GstBuffer *cur_frame = NULL;
gst_buffer_replace (&cur_frame, play_bin->frame);
gst_value_take_buffer (value, cur_frame);
break;
}
case ARG_CONNECTION_SPEED:
g_value_set_uint (value, play_bin->connection_speed / 1000);
break;