Pass unhandled queries upstream (useful e.g. for SEEKING query)

Original commit message from CVS:
* ext/amrnb/amrnbparse.c: (gst_amrnbparse_query):
* ext/mad/gstid3tag.c: (gst_id3_tag_src_query):
* ext/mad/gstmad.c: (gst_mad_src_query):
* ext/mpeg2dec/gstmpeg2dec.c: (gst_mpeg2dec_src_query):
* ext/sidplay/gstsiddec.cc:
* gst/mpegstream/gstmpegparse.c: (gst_mpeg_parse_handle_src_query):
* gst/realmedia/rmdemux.c: (gst_rmdemux_src_query):
Pass unhandled queries upstream (useful e.g. for SEEKING query)
(fixes #325652; based on patch by: Philippe); make rmdemux return
FALSE for position queries, instead of setting -1 as value and
returning TRUE.
This commit is contained in:
Tim-Philipp Müller 2006-01-10 11:43:37 +00:00
parent 216917d0b1
commit 9828b301eb
9 changed files with 27 additions and 12 deletions

View file

@ -1,3 +1,17 @@
2006-01-10 Tim-Philipp Müller <tim at centricular dot net>
* ext/amrnb/amrnbparse.c: (gst_amrnbparse_query):
* ext/mad/gstid3tag.c: (gst_id3_tag_src_query):
* ext/mad/gstmad.c: (gst_mad_src_query):
* ext/mpeg2dec/gstmpeg2dec.c: (gst_mpeg2dec_src_query):
* ext/sidplay/gstsiddec.cc:
* gst/mpegstream/gstmpegparse.c: (gst_mpeg_parse_handle_src_query):
* gst/realmedia/rmdemux.c: (gst_rmdemux_src_query):
Pass unhandled queries upstream (useful e.g. for SEEKING query)
(fixes #325652; based on patch by: Philippe); make rmdemux return
FALSE for position queries, instead of setting -1 as value and
returning TRUE.
2006-01-05 Martin Soto <martinsoto@users.sourceforge.net>
* gst/mpegstream/gstmpegparse.c (gst_mpeg_parse_adjust_ts)

2
common

@ -1 +1 @@
Subproject commit 5f10c872cafb3eb8058d63e438cae029ed9e8d73
Subproject commit e0b121388ece524c0b7035a72bddd191d122d8bf

View file

@ -236,7 +236,7 @@ gst_amrnbparse_query (GstPad * pad, GstQuery * query)
break;
}
default:
res = FALSE;
res = gst_pad_query_default (pad, query);
break;
}
return res;

View file

@ -487,6 +487,7 @@ gst_id3_tag_src_query (GstPad * pad, GstQuery * query)
break;
}
default:
res = gst_pad_query_default (pad, query);
break;
}
return res;

View file

@ -666,7 +666,7 @@ gst_mad_src_query (GstPad * pad, GstQuery * query)
break;
}
default:
res = FALSE;
res = gst_pad_query_default (pad, query);
break;
}

View file

@ -1149,7 +1149,7 @@ gst_mpeg2dec_src_query (GstPad * pad, GstQuery * query)
break;
}
default:
res = FALSE;
res = gst_pad_query_default (pad, query);
break;
}
done:

View file

@ -613,7 +613,7 @@ gst_siddec_src_query (GstPad * pad, GstQuery * query)
break;
}
default:
res = FALSE;
res = gst_pad_query_default (pad, query);
break;
}
return res;

View file

@ -1048,8 +1048,8 @@ gst_mpeg_parse_handle_src_query (GstPad * pad, GstQuery * query)
break;
}
default:
res = FALSE;
goto done;
res = gst_pad_query_default (pad, query);
break;
}
done:

View file

@ -630,18 +630,18 @@ gst_rmdemux_src_query (GstPad * pad, GstQuery * query)
switch (GST_QUERY_TYPE (query)) {
case GST_QUERY_POSITION:
GST_DEBUG_OBJECT (rmdemux, "src_query position");
gst_query_set_position (query, GST_FORMAT_TIME, -1); //rmdemux->cur_timestamp,
gst_query_set_position (query, GST_FORMAT_TIME, -1); /* rmdemux->cur_timestamp */
GST_DEBUG_OBJECT (rmdemux, "Position query: no idea from demuxer!");
res = FALSE;
break;
case GST_QUERY_DURATION:
GST_DEBUG_OBJECT (rmdemux, "src_query duration");
gst_query_set_duration (query, GST_FORMAT_TIME, //rmdemux->cur_timestamp,
rmdemux->duration);
GST_DEBUG_OBJECT (rmdemux, "Duration query: set to %lld in demuxer",
gst_query_set_duration (query, GST_FORMAT_TIME, rmdemux->duration);
GST_DEBUG_OBJECT (rmdemux, "duration set to %" G_GINT64_FORMAT,
rmdemux->duration);
break;
default:
res = FALSE;
res = gst_pad_query_default (pad, query);
break;
}