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:
0c34d80
)
sfdec: make _stop() non fatal when we have an error already
author
Stefan Sauer
<ensonic@users.sf.net>
Fri, 20 Dec 2013 17:10:14 +0000
(18:10 +0100)
committer
Stefan Sauer
<ensonic@users.sf.net>
Fri, 20 Dec 2013 19:00:55 +0000
(20:00 +0100)
Having no open file in _stop() is okay. Just reset state.
ext/sndfile/gstsfdec.c
patch
|
blob
|
history
diff --git
a/ext/sndfile/gstsfdec.c
b/ext/sndfile/gstsfdec.c
index
c102681
..
8271989
100644
(file)
--- a/
ext/sndfile/gstsfdec.c
+++ b/
ext/sndfile/gstsfdec.c
@@
-394,11
+394,9
@@
gst_sf_dec_stop (GstSFDec * self)
{
int err = 0;
- g_return_val_if_fail (self->file != NULL, FALSE);
-
GST_INFO_OBJECT (self, "Closing sndfile stream");
- if ((err = sf_close (self->file)))
+ if (
self->file &&
(err = sf_close (self->file)))
goto close_failed;
self->file = NULL;