mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
gst/gstutils.c: Remove check in gst_pad_query_convert() that src_val must be positive, because that's not a requirement.
Original commit message from CVS: * gst/gstutils.c: Remove check in gst_pad_query_convert() that src_val must be positive, because that's not a requirement. This causes problems with converting negative granulepos values for Dirac. * gst/gstquery.c: Same, gst_query_new_convert().
This commit is contained in:
parent
34087e8b17
commit
93f300823f
2 changed files with 1 additions and 2 deletions
|
@ -4,6 +4,7 @@
|
||||||
src_val must be positive, because that's not a requirement.
|
src_val must be positive, because that's not a requirement.
|
||||||
This causes problems with converting negative granulepos
|
This causes problems with converting negative granulepos
|
||||||
values for Dirac.
|
values for Dirac.
|
||||||
|
* gst/gstquery.c: Same, gst_query_new_convert().
|
||||||
|
|
||||||
2008-08-25 Wim Taymans <wim.taymans@collabora.co.uk>
|
2008-08-25 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||||
|
|
||||||
|
|
|
@ -642,8 +642,6 @@ gst_query_new_convert (GstFormat src_format, gint64 value,
|
||||||
GstQuery *query;
|
GstQuery *query;
|
||||||
GstStructure *structure;
|
GstStructure *structure;
|
||||||
|
|
||||||
g_return_val_if_fail (value >= 0, NULL);
|
|
||||||
|
|
||||||
structure = gst_structure_empty_new ("GstQueryConvert");
|
structure = gst_structure_empty_new ("GstQueryConvert");
|
||||||
gst_structure_id_set (structure,
|
gst_structure_id_set (structure,
|
||||||
GST_QUARK (SRC_FORMAT), GST_TYPE_FORMAT, src_format,
|
GST_QUARK (SRC_FORMAT), GST_TYPE_FORMAT, src_format,
|
||||||
|
|
Loading…
Reference in a new issue