Fix crash, and some debugging code 04/43704/3 accepted/tizen/mobile/20150717.002852 accepted/tizen/tv/20150717.002907 accepted/tizen/wearable/20150717.002921 submit/tizen/20150715.092047 submit/tizen/20150716.043920
authorJeongho Mok <jho.mok@samsung.com>
Mon, 13 Jul 2015 08:47:22 +0000 (17:47 +0900)
committerJeongho Mok <jho.mok@samsung.com>
Wed, 15 Jul 2015 07:27:58 +0000 (16:27 +0900)
[Version] 0.5-23
[Profile] Common
[Issue Type] crash

Change-Id: Icf792dc017950701b3acb1f6df36273dd695ef22
Signed-off-by: Jeongho Mok <jho.mok@samsung.com>
packaging/pulseaudio.spec
src/modules/tizen/stream-manager-volume.c
src/modules/tizen/stream-manager.c
src/pulsecore/sink-input.c
src/pulsecore/source-output.c

index 7f256bb..98c74e9 100644 (file)
@@ -11,7 +11,7 @@
 Name:             pulseaudio
 Summary:          Improved Linux sound server
 Version:          5.0
-Release:          22
+Release:          23
 Group:            Multimedia/Audio
 License:          GPL-2.0+ and LGPL-2.1+
 URL:              http://pulseaudio.org
index 459561e..a48b650 100644 (file)
@@ -679,6 +679,7 @@ int32_t init_volume_map (pa_stream_manager *m) {
     }
 #endif
 FAILURE:
+    pa_log_error("Failed to initialize volume map");
     return ret;
 }
 
index 9d74d8a..7c985a6 100644 (file)
@@ -1256,6 +1256,7 @@ static int init_stream_map (pa_stream_manager *m) {
 
     return 0;
 failed:
+    pa_log_error("Failed to initialize stream map");
     if (m->stream_map) {
         PA_HASHMAP_FOREACH(s, m->stream_map, state) {
             if (s->idx_avail_in_devices)
@@ -2281,6 +2282,7 @@ static int init_ipc (pa_stream_manager *m) {
 
     return 0;
 fail:
+    pa_log_error("Failed to initialize stream manager ipc");
     return -1;
 }
 
index 0694a9c..735ce90 100644 (file)
@@ -385,6 +385,8 @@ int pa_sink_input_new(
         }
 
         pa_sink_input_new_data_set_sink(data, sink, false);
+    } else {
+        pa_sink_input_new_data_set_sink(data, data->sink, false);
     }
 
     /* If something didn't pick a format for us, pick the top-most format since
index ab5aa08..d24fe41 100644 (file)
@@ -327,6 +327,8 @@ int pa_source_output_new(
         }
 
         pa_source_output_new_data_set_source(data, source, false);
+    } else {
+        pa_source_output_new_data_set_source(data, data->source, false);
     }
 
     /* If something didn't pick a format for us, pick the top-most format since