[rhythmbox] xfade: remove cdda hackery, emit prepare-source signal instead
- From: Jonathan Matthew <jmatthew src gnome org>
- To: svn-commits-list gnome org
- Subject: [rhythmbox] xfade: remove cdda hackery, emit prepare-source signal instead
- Date: Tue, 2 Jun 2009 06:47:43 -0400 (EDT)
commit 30011c47176c0f2e68a95038feefedbd1c77a24b
Author: Jonathan Matthew <jonathan d14n org>
Date: Tue Jun 2 20:33:59 2009 +1000
xfade: remove cdda hackery, emit prepare-source signal instead
---
backends/gstreamer/rb-player-gst-xfade.c | 22 ++--------------------
1 files changed, 2 insertions(+), 20 deletions(-)
diff --git a/backends/gstreamer/rb-player-gst-xfade.c b/backends/gstreamer/rb-player-gst-xfade.c
index dc996d3..54a3e30 100644
--- a/backends/gstreamer/rb-player-gst-xfade.c
+++ b/backends/gstreamer/rb-player-gst-xfade.c
@@ -1996,26 +1996,8 @@ create_stream (RBPlayerGstXFade *player, const char *uri, gpointer stream_data,
g_object_set (stream->source, "iradio-mode", TRUE, NULL);
}
- /* for audio CD playback, try to reduce read speed and disable error correction,
- * and handle our cdda://1#/dev/cdrom hack for specifying the device.
- */
- if (g_str_has_prefix (uri, "cdda://")) {
- GObjectClass *klass = G_OBJECT_GET_CLASS (stream->source);
- if (g_object_class_find_property (klass, "paranoia-mode")) {
- g_object_set (stream->source, "paranoia-mode", 0, NULL);
- }
- if (g_object_class_find_property (klass, "read-speed")) {
- g_object_set (stream->source, "read-speed", 1, NULL);
- }
- if (g_object_class_find_property (klass, "device")) {
- char *device;
-
- device = g_utf8_strchr (uri, -1, '#');
- if (device != NULL) {
- g_object_set (stream->source, "device", device+1, NULL);
- }
- }
- }
+ /* let plugins apply additional properties to the source */
+ g_signal_emit (player, signals[PREPARE_SOURCE], 0, stream->uri, stream->source);
stream->decoder = gst_element_factory_make ("decodebin2", NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]