diff options
author | Luo Jinghua <sunmoon1997@gmail.com> | 2009-10-11 16:57:10 +0800 |
---|---|---|
committer | Luo Jinghua <sunmoon1997@gmail.com> | 2009-10-11 16:57:10 +0800 |
commit | 1842920dbcc8e62739d4623dbebd7a47ecc43e90 (patch) | |
tree | a93fdbf14fc1e1b8af39fffe445a2c9663b8863c | |
parent | 46aa0edcf611c72c2ea4251c279e38334956ce2b (diff) |
-rw-r--r-- | src/gstpmpdemux.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/gstpmpdemux.c b/src/gstpmpdemux.c index ca99a3c..cfdb410 100644 --- a/src/gstpmpdemux.c +++ b/src/gstpmpdemux.c @@ -334,18 +334,8 @@ gst_pmpdemux_handle_src_query (GstPad * pad, GstQuery * query) gst_pmpdemux_get_duration (pmpdemux, &duration); seekable = TRUE; - if (!pmpdemux->pullbased) { - GstQuery *q; - - /* we might be able with help from upstream */ + if (!pmpdemux->pullbased) seekable = FALSE; - q = gst_query_new_seeking (GST_FORMAT_BYTES); - if ((res = gst_pad_peer_query (pmpdemux->sinkpad, q))) { - gst_query_parse_seeking (q, &fmt, &seekable, NULL, NULL); - GST_LOG_OBJECT (pmpdemux, "upstream BYTE seekable %d", seekable); - } - gst_query_unref (q); - } gst_query_set_seeking (query, GST_FORMAT_TIME, seekable, 0, duration); res = TRUE; } |