update for new scheduling query

This commit is contained in:
Wim Taymans 2011-11-18 17:59:16 +01:00
parent b7aa7bca52
commit 6e4fb21331
6 changed files with 8 additions and 6 deletions

View file

@ -5279,7 +5279,7 @@ gst_avi_demux_sink_activate (GstPad * sinkpad, GstObject * parent)
goto activate_push; goto activate_push;
} }
gst_query_parse_scheduling (query, &pull_mode, NULL, NULL, NULL, NULL, NULL); pull_mode = gst_query_has_scheduling_mode (query, GST_PAD_MODE_PULL);
gst_query_unref (query); gst_query_unref (query);
if (!pull_mode) if (!pull_mode)

View file

@ -109,7 +109,8 @@ gst_push_file_src_ghostpad_query (GstPad * pad, GstObject * parent,
switch (GST_QUERY_TYPE (query)) { switch (GST_QUERY_TYPE (query)) {
case GST_QUERY_SCHEDULING: case GST_QUERY_SCHEDULING:
gst_query_set_scheduling (query, FALSE, TRUE, FALSE, 1, -1, 1); gst_query_set_scheduling (query, GST_SCHEDULING_FLAG_SEEKABLE, 1, -1, 0);
gst_query_add_scheduling_mode (query, GST_PAD_MODE_PUSH);
res = TRUE; res = TRUE;
break; break;
default: default:

View file

@ -227,7 +227,8 @@ gst_rnd_buffer_size_activate (GstPad * pad, GstObject * parent)
goto no_pull; goto no_pull;
} }
gst_query_parse_scheduling (query, &pull_mode, NULL, NULL, NULL, NULL, NULL); pull_mode = gst_query_has_scheduling_mode (query, GST_PAD_MODE_PULL);
gst_query_unref (query);
if (!pull_mode) if (!pull_mode)
goto no_pull; goto no_pull;

View file

@ -2811,7 +2811,7 @@ gst_flv_demux_sink_activate (GstPad * sinkpad, GstObject * parent)
goto activate_push; goto activate_push;
} }
gst_query_parse_scheduling (query, &pull_mode, NULL, NULL, NULL, NULL, NULL); pull_mode = gst_query_has_scheduling_mode (query, GST_PAD_MODE_PULL);
gst_query_unref (query); gst_query_unref (query);
if (!pull_mode) if (!pull_mode)

View file

@ -4434,7 +4434,7 @@ qtdemux_sink_activate (GstPad * sinkpad, GstObject * parent)
goto activate_push; goto activate_push;
} }
gst_query_parse_scheduling (query, &pull_mode, NULL, NULL, NULL, NULL, NULL); pull_mode = gst_query_has_scheduling_mode (query, GST_PAD_MODE_PULL);
gst_query_unref (query); gst_query_unref (query);
if (!pull_mode) if (!pull_mode)

View file

@ -2557,7 +2557,7 @@ gst_wavparse_sink_activate (GstPad * sinkpad, GstObject * parent)
goto activate_push; goto activate_push;
} }
gst_query_parse_scheduling (query, &pull_mode, NULL, NULL, NULL, NULL, NULL); pull_mode = gst_query_has_scheduling_mode (query, GST_PAD_MODE_PULL);
gst_query_unref (query); gst_query_unref (query);
if (!pull_mode) if (!pull_mode)