+2005-10-12 Wim Taymans <wim@fluendo.com>
+
+ * check/pipelines/simple_launch_lines.c: (run_pipeline):
+ * examples/seeking/Makefile.am:
+ * examples/seeking/cdplayer.c: (play_cb), (pause_cb), (stop_cb):
+ * examples/seeking/seek.c: (make_avi_msmpeg4v3_mp3_pipeline),
+ (do_seek), (set_update_scale), (message_received), (main):
+ * gst-libs/gst/audio/gstringbuffer.c: (gst_ring_buffer_commit),
+ (gst_ring_buffer_read), (gst_ring_buffer_clear):
+ Update for _get_state() API change.
+
2005-10-11 Wim Taymans <wim@fluendo.com>
* gst-libs/gst/audio/gstbaseaudiosink.c:
g_assert (bus);
ret = gst_element_set_state (pipe, GST_STATE_PLAYING);
- ret = gst_element_get_state (pipe, NULL, NULL, NULL);
+ ret = gst_element_get_state (pipe, NULL, NULL, GST_CLOCK_TIME_NONE);
if (ret != GST_STATE_CHANGE_SUCCESS) {
g_critical ("Couldn't set pipeline to PLAYING");
goto done;
-Subproject commit 615cf4d4506ef1ffb1f600c434fced1fa26b0f44
+Subproject commit 2485a65b662de25fb7b71857e34411426c6f530c
-examples = seek # cdplayer cdparanoia
+examples = seek scrubby # cdplayer cdparanoia
noinst_PROGRAMS = $(examples)
{
GstState state;
- gst_element_get_state (pipeline, &state, NULL, NULL);
+ gst_element_get_state (pipeline, &state, NULL, GST_CLOCK_TIME_NONE);
if (state != GST_STATE_PLAYING) {
gst_element_set_state (pipeline, GST_STATE_PLAYING);
update_id =
{
GstState state;
- gst_element_get_state (pipeline, &state, NULL, NULL);
+ gst_element_get_state (pipeline, &state, NULL, GST_CLOCK_TIME_NONE);
if (state != GST_STATE_PAUSED) {
gst_element_set_state (pipeline, GST_STATE_PAUSED);
gtk_timeout_remove (update_id);
{
GstState state;
- gst_element_get_state (pipeline, &state, NULL, NULL);
+ gst_element_get_state (pipeline, &state, NULL, GST_CLOCK_TIME_NONE);
if (state != GST_STATE_READY) {
gst_element_set_state (pipeline, GST_STATE_READY);
gtk_timeout_remove (update_id);
}
if (res) {
- GTimeVal tv;
-
gst_pipeline_set_new_stream_time (GST_PIPELINE (pipeline), 0);
- GST_TIME_TO_TIMEVAL (100 * GST_MSECOND, tv);
- gst_element_get_state (GST_ELEMENT (pipeline), NULL, NULL, &tv);
+ gst_element_get_state (GST_ELEMENT (pipeline), NULL, NULL,
+ 100 * GST_MSECOND);
} else
g_print ("seek failed\n");
}
g_assert (bus);
ret = gst_element_set_state (pipe, GST_STATE_PLAYING);
- ret = gst_element_get_state (pipe, NULL, NULL, NULL);
+ ret = gst_element_get_state (pipe, NULL, NULL, GST_CLOCK_TIME_NONE);
if (ret != GST_STATE_CHANGE_SUCCESS) {
g_critical ("Couldn't set pipeline to PLAYING");
goto done;
-examples = seek # cdplayer cdparanoia
+examples = seek scrubby # cdplayer cdparanoia
noinst_PROGRAMS = $(examples)
}
if (res) {
- GTimeVal tv;
-
gst_pipeline_set_new_stream_time (GST_PIPELINE (pipeline), 0);
- GST_TIME_TO_TIMEVAL (100 * GST_MSECOND, tv);
- gst_element_get_state (GST_ELEMENT (pipeline), NULL, NULL, &tv);
+ gst_element_get_state (GST_ELEMENT (pipeline), NULL, NULL,
+ 100 * GST_MSECOND);
} else
g_print ("seek failed\n");
}
-examples = seek # cdplayer cdparanoia
+examples = seek scrubby # cdplayer cdparanoia
noinst_PROGRAMS = $(examples)
{
GstState state;
- gst_element_get_state (pipeline, &state, NULL, NULL);
+ gst_element_get_state (pipeline, &state, NULL, GST_CLOCK_TIME_NONE);
if (state != GST_STATE_PLAYING) {
gst_element_set_state (pipeline, GST_STATE_PLAYING);
update_id =
{
GstState state;
- gst_element_get_state (pipeline, &state, NULL, NULL);
+ gst_element_get_state (pipeline, &state, NULL, GST_CLOCK_TIME_NONE);
if (state != GST_STATE_PAUSED) {
gst_element_set_state (pipeline, GST_STATE_PAUSED);
gtk_timeout_remove (update_id);
{
GstState state;
- gst_element_get_state (pipeline, &state, NULL, NULL);
+ gst_element_get_state (pipeline, &state, NULL, GST_CLOCK_TIME_NONE);
if (state != GST_STATE_READY) {
gst_element_set_state (pipeline, GST_STATE_READY);
gtk_timeout_remove (update_id);