gst/gstelement.c: fix assertion to do an int comparison

Original commit message from CVS:
* gst/gstelement.c: (gst_element_change_state):
fix assertion to do an int comparison
This commit is contained in:
Benjamin Otte 2004-04-25 20:28:21 +00:00
parent d0c08ccb19
commit a4c2564b60
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2004-04-25 Benjamin Otte <otte@gnome.org>
* gst/gstelement.c: (gst_element_change_state):
fix assertion to do an int comparison
2004-04-25 Benjamin Otte <otte@gnome.org>
* gst/elements/gstfilesrc.c: (gst_filesrc_open_file):

View file

@ -2881,7 +2881,7 @@ gst_element_change_state (GstElement * element)
switch (old_transition) {
case GST_STATE_PLAYING_TO_PAUSED:
if (element->clock) {
GstClockTime time = gst_clock_get_event_time (element->clock);
GstClockTimeDiff time = gst_clock_get_event_time (element->clock);
g_assert (time >= element->base_time);
element->base_time = time - element->base_time;