summaryrefslogtreecommitdiffstats
path: root/gst/real/gstrealaudiodec.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2007-08-07 10:51:59 +0000
committerWim Taymans <wim.taymans@gmail.com>2007-08-07 10:51:59 +0000
commit9cf09a5871479270e2e76a1aad2250def30d155e (patch)
tree11c037725302c1424392c733808a00182def8b15 /gst/real/gstrealaudiodec.c
parent567369cc6df8ac009b5baf694516bc01411768ff (diff)
downloadgst-plugins-bad-9cf09a5871479270e2e76a1aad2250def30d155e.tar.gz
gst-plugins-bad-9cf09a5871479270e2e76a1aad2250def30d155e.tar.bz2
gst-plugins-bad-9cf09a5871479270e2e76a1aad2250def30d155e.zip
gst/real/gstrealaudiodec.c: Small cleanups.
Original commit message from CVS: * gst/real/gstrealaudiodec.c: (gst_real_audio_dec_setcaps): Small cleanups. * gst/real/gstrealvideodec.c: (gst_real_video_dec_chain), (open_library): Remove fragment and timestamp correction code from the decoder to make the caps and buffer contents compatible with matroska/ffdec_rvx0/...
Diffstat (limited to 'gst/real/gstrealaudiodec.c')
-rw-r--r--gst/real/gstrealaudiodec.c58
1 files changed, 35 insertions, 23 deletions
diff --git a/gst/real/gstrealaudiodec.c b/gst/real/gstrealaudiodec.c
index 9427ea2e..1045e11f 100644
--- a/gst/real/gstrealaudiodec.c
+++ b/gst/real/gstrealaudiodec.c
@@ -354,36 +354,48 @@ codec_search_done:
return TRUE;
missing_keys:
- GST_DEBUG_OBJECT (dec, "Could not find all necessary keys in structure.");
- return FALSE;
+ {
+ GST_DEBUG_OBJECT (dec, "Could not find all necessary keys in structure.");
+ return FALSE;
+ }
unknown_version:
- GST_DEBUG_OBJECT (dec, "Cannot handle version %i.", version);
- return FALSE;
+ {
+ GST_DEBUG_OBJECT (dec, "Cannot handle version %i.", version);
+ return FALSE;
+ }
could_not_open:
- g_strfreev (split_path);
- GST_DEBUG_OBJECT (dec, "Could not find library '%s' in '%s'", names, path);
- return FALSE;
+ {
+ g_strfreev (split_path);
+ GST_DEBUG_OBJECT (dec, "Could not find library '%s' in '%s'", names, path);
+ return FALSE;
+ }
could_not_load:
- g_module_close (module);
- g_strfreev (split_path);
- GST_DEBUG_OBJECT (dec, "Could not load all symbols: %s", g_module_error ());
- return FALSE;
+ {
+ g_module_close (module);
+ g_strfreev (split_path);
+ GST_DEBUG_OBJECT (dec, "Could not load all symbols: %s", g_module_error ());
+ return FALSE;
+ }
could_not_initialize:
- if (context) {
- funcs.RACloseCodec (context);
- funcs.RAFreeDecoder (context);
+ {
+ if (context) {
+ funcs.RACloseCodec (context);
+ funcs.RAFreeDecoder (context);
+ }
+ g_module_close (module);
+ GST_WARNING_OBJECT (dec, "Initialization of REAL driver failed (%i).", res);
+ return FALSE;
}
- g_module_close (module);
- GST_WARNING_OBJECT (dec, "Initialization of REAL driver failed (%i).", res);
- return FALSE;
could_not_set_caps:
- if (context) {
- funcs.RACloseCodec (context);
- funcs.RAFreeDecoder (context);
+ {
+ if (context) {
+ funcs.RACloseCodec (context);
+ funcs.RAFreeDecoder (context);
+ }
+ g_module_close (module);
+ GST_DEBUG_OBJECT (dec, "Could not convince peer to accept caps.");
+ return FALSE;
}
- g_module_close (module);
- GST_DEBUG_OBJECT (dec, "Could not convince peer to accept caps.");
- return FALSE;
}
static void