mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
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:
parent
d0c08ccb19
commit
a4c2564b60
2 changed files with 6 additions and 1 deletions
|
@ -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):
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue