[longomatch/livecapturemerged: 71/84] Transform bitrate from kbps to bps depending on the encoder
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/livecapturemerged: 71/84] Transform bitrate from kbps to bps depending on the encoder
- Date: Tue, 11 May 2010 00:53:57 +0000 (UTC)
commit 4f9bfc6f2f3fb9c0f1de0b47c9cb49a4bdfac1e5
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sat May 8 10:14:17 2010 +0200
Transform bitrate from kbps to bps depending on the encoder
libcesarplayer/src/gst-camera-capturer.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/libcesarplayer/src/gst-camera-capturer.c b/libcesarplayer/src/gst-camera-capturer.c
index 5c5463a..afce3af 100644
--- a/libcesarplayer/src/gst-camera-capturer.c
+++ b/libcesarplayer/src/gst-camera-capturer.c
@@ -245,7 +245,10 @@ gst_camera_capturer_set_audio_bit_rate (GstCameraCapturer * gcc, gint bitrate)
{
gcc->priv->audio_bitrate = bitrate;
- g_object_set (gcc->priv->audioenc, "bitrate", bitrate, NULL);
+ if (gcc->priv->audio_encoder_type != GCC_AUDIO_ENCODER_MP3)
+ g_object_set (gcc->priv->audioenc, "bitrate", bitrate, NULL);
+ else
+ g_object_set (gcc->priv->audioenc, "bitrate", 1000 * bitrate, NULL);
GST_INFO_OBJECT (gcc, "Changed audio bitrate to :\n%d",
gcc->priv->audio_bitrate);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]