mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
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:
parent
77cf01b76b
commit
d289e2d55c
2 changed files with 11 additions and 2 deletions
|
@ -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>
|
2007-01-25 Edward Hervey <edward@fluendo.com>
|
||||||
|
|
||||||
* gst/playback/gstdecodebin2.c: (gst_decode_bin_finalize),
|
* gst/playback/gstdecodebin2.c: (gst_decode_bin_finalize),
|
||||||
|
|
|
@ -759,9 +759,13 @@ gst_play_bin_get_property (GObject * object, guint prop_id, GValue * value,
|
||||||
case ARG_VOLUME:
|
case ARG_VOLUME:
|
||||||
g_value_set_double (value, play_bin->volume);
|
g_value_set_double (value, play_bin->volume);
|
||||||
break;
|
break;
|
||||||
case ARG_FRAME:
|
case ARG_FRAME:{
|
||||||
gst_value_set_mini_object (value, GST_MINI_OBJECT (play_bin->frame));
|
GstBuffer *cur_frame = NULL;
|
||||||
|
|
||||||
|
gst_buffer_replace (&cur_frame, play_bin->frame);
|
||||||
|
gst_value_take_buffer (value, cur_frame);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case ARG_CONNECTION_SPEED:
|
case ARG_CONNECTION_SPEED:
|
||||||
g_value_set_uint (value, play_bin->connection_speed / 1000);
|
g_value_set_uint (value, play_bin->connection_speed / 1000);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue