projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e33425e
)
oggdemux: don't seek when no current chain
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Thu, 6 May 2010 11:10:54 +0000
(13:10 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Thu, 6 May 2010 11:10:54 +0000
(13:10 +0200)
Avoid a crash when we try to seek when there is no current chain.
ext/ogg/gstoggdemux.c
patch
|
blob
|
history
diff --git
a/ext/ogg/gstoggdemux.c
b/ext/ogg/gstoggdemux.c
index
e41d04f
..
c29e0e4
100644
(file)
--- a/
ext/ogg/gstoggdemux.c
+++ b/
ext/ogg/gstoggdemux.c
@@
-2384,6
+2384,8
@@
gst_ogg_demux_perform_seek_push (GstOggDemux * ogg, GstEvent * event)
}
chain = ogg->current_chain;
+ if (!chain)
+ return FALSE;
if (do_index_search (ogg, chain, 0, -1, 0, -1, start, &best, &best_time)) {
/* the index gave some result */