# HG changeset patch # User reimar # Date 1150556503 0 # Node ID 36ef1777ed81af08271f10930146c23ff74fd6a6 # Parent 04a6513249635ccfbfafdf6a2892d81ef1f8f308 Fix crash with all audio-only ogg files, the vorbis_info struct is not stored in the sh_audio context but in the demuxer priv element diff -r 04a651324963 -r 36ef1777ed81 libmpdemux/demux_ogg.c --- a/libmpdemux/demux_ogg.c Fri Jun 16 21:59:56 2006 +0000 +++ b/libmpdemux/demux_ogg.c Sat Jun 17 15:01:43 2006 +0000 @@ -1648,7 +1648,7 @@ rate = os->samplerate; } else { os = &ogg_d->subs[demuxer->audio->id]; - rate = (float)((ov_struct_t*)((sh_audio_t*)demuxer->audio->sh)->context)->vi.rate; + rate = ogg_d->vi.rate; }