Skip to content

Instantly share code, notes, and snippets.

View knocte's full-sized avatar
💭
F#ing

Andres G. Aragoneses knocte

💭
F#ing
View GitHub Profile
@knocte
knocte / gist:6954949
Created October 12, 2013 21:09
addprobe?
private bool Blocked
{
set {
if (vis_resampler == null)
return;
Pad queue_sink = vis_resampler.GetStaticPad ("src");
queue_sink.SetBlocked (value, new PadBlockCallback (BlockCallback));
}
}
@knocte
knocte / gist:6955267
Created October 12, 2013 21:45
diff gstsharp 0.10-1.0
diff --git a/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/Visualization.cs b/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/Visualization.cs
index d413918..9381e02 100644
--- a/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/Visualization.cs
+++ b/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/Visualization.cs
@@ -173,23 +175,27 @@ namespace Banshee.GStreamerSharp
"endianness = (int) BYTE_ORDER, " +
"width = (int) 32");
- private void BlockCallback (Pad pad, bool blocked)
+ private PadProbeReturn BlockCallback (Pad pad, PadProbeInfo info)
@knocte
knocte / gist:6955438
Created October 12, 2013 22:05
makes more sense?
diff --git a/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/Visualization.cs b/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/Visualization.cs
index d413918..f63dce9 100644
--- a/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/Visualization.cs
+++ b/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/Visualization.cs
@@ -173,23 +175,27 @@ namespace Banshee.GStreamerSharp
"endianness = (int) BYTE_ORDER, " +
"width = (int) 32");
- private void BlockCallback (Pad pad, bool blocked)
+ private PadProbeReturn BlockCallback (Pad pad, PadProbeInfo info)
@knocte
knocte / gist:6955557
Created October 12, 2013 22:17
third time lucky
diff --git a/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/Visualization.cs b/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/Visualization.cs
index d413918..8259fa4 100644
--- a/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/Visualization.cs
+++ b/src/Backends/Banshee.GStreamerSharp/Banshee.GStreamerSharp/Visualization.cs
@@ -173,23 +175,27 @@ namespace Banshee.GStreamerSharp
"endianness = (int) BYTE_ORDER, " +
"width = (int) 32");
- private void BlockCallback (Pad pad, bool blocked)
- {
@knocte
knocte / gist:6991196
Created October 15, 2013 12:57
call g_return_val_if_fail earlier to avoid connecting to a signal of a NULL object
diff --git a/libbanshee/banshee-player-pipeline.c b/libbanshee/banshee-player-pipeline.c
index 28bae33..1222142 100644
--- a/libbanshee/banshee-player-pipeline.c
+++ b/libbanshee/banshee-player-pipeline.c
@@ -294,13 +294,13 @@ _bp_pipeline_construct (BansheePlayer *player)
// source and decoder elements) based on source URI and stream content
player->playbin = gst_element_factory_make ("playbin", "playbin");
+ g_return_val_if_fail (player->playbin != NULL, FALSE);
+
@knocte
knocte / gist:6991612
Created October 15, 2013 13:33
gst packaging bug in ubuntu 13.10 final beta
13:19 <knocte> Laney: ping
13:20 <Laney> hi
13:20 <knocte> Laney: hi, by any chance have you, or hyperair, tried banshee in 13.10 beta?
13:20 <Laney> I use it most days
13:21 <knocte> Laney: doesn't work for me (works without slomo's downstream patch)
13:21 <knocte> do you use ubuntu64bits, or 32?
13:21 <slomo_> 64
13:22 <Laney> amd64
13:22 <knocte> me too
13:22 <slomo_> and i use debian ;)
@knocte
knocte / gist:7119161
Created October 23, 2013 13:52
G_DEBUG=fatal_warnings gdb -> run --debug Nereid.exe (crash in master with unmanaged backend and ubuntu 13.10)
[New Thread 0x7fffb1760700 (LWP 28496)]
[New Thread 0x7fffb0f5f700 (LWP 28497)]
[New Thread 0x7fffb075e700 (LWP 28498)]
[New Thread 0x7fffaff5d700 (LWP 28499)]
[New Thread 0x7fffaf75c700 (LWP 28500)]
(Nereid:28466): GStreamer-CRITICAL **: gst_element_query: assertion 'GST_IS_ELEMENT (element)' failed
Program received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffff443a3c9 in g_logv () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
@knocte
knocte / gist:7154719
Created October 25, 2013 13:30
GStreamer 1.0 OGV playback with GST_DEBUG=4 (it works)
[Info 14:58:45.027] Running Banshee 2.9.1: [git-checkout (linux-gnu, x86_64) @ 2013-10-25 02:39:49 CEST]
[Info 14:58:45.965] Updating web proxy from GConf
0:00:00.000059538  4375 0x7f060c004800 INFO   GST_INIT gst.c:568:init_pre: Initializing GStreamer Core Library version 1.0.6
0:00:00.000101803  4375 0x7f060c004800 INFO   GST_INIT gst.c:569:init_pre: Using library installed in /usr/lib/x86_64-linux-gnu
0:00:00.000112012  4375 0x7f060c004800 INFO   GST_INIT gst.c:579:init_pre: Linux ulises 3.8.0-32-generic #47-Ubuntu SMP Tue Oct 1 22:35:23 UTC 2013 x86_64
0:00:00.000656209  4375 0x7f060c004800 INFO   GST_INIT gstmessage.c:121:_priv_gst_message_initialize: init messages
0:00:00.000890488  4375 0x7f060c004800 INFO   GST_PLUGIN_LOADING gstplugin.c:317:_priv_gst_plugin_initialize
@knocte
knocte / gist:7155130
Last active December 26, 2015 12:59
GStreamer 1.2 OGV playback with GST_DEBUG=4 (playback doesn't work; audio of the OGV works, video is black)
*** Running with gui-thread-check ***
[Info 15:36:11.032] Running Banshee 2.9.1: [git-checkout (linux-gnu, x86_64) @ 2013-10-25 02:21:00 CEST]
[1 Debug 15:36:11.057] Initializing GTK
[1 Debug 15:36:12.270] Post-Initializing GTK
[1 Debug 15:36:12.288] Configuration client extension loaded (Banshee.GnomeBackend.GConfConfigurationClient)
[1 Debug 15:36:12.291] Using default gconf-base-key
[1 Debug 15:36:12.386] Bus.Session.RequestName ('org.bansheeproject.Banshee') replied with PrimaryOwner
[1 Debug 15:36:12.446] Core service started (DBusServiceManager, 0.001322)
[1 Debug 15:36:12.448] Registering remote object /org/bansheeproject/Banshee/DBusCommandService (Banshee.ServiceStack.DBusCommandService) on org.bansheeproject.Banshee
[1 Debug 15:36:12.454] Core service started (DBusCommandService, 0.007914)
@knocte
knocte / gist:7155196
Created October 25, 2013 14:05
GStreamer 1.2 OGV ---TOTEM--- playback with GST_DEBUG=4 (it works)
0:00:00.000065170  4215 0x7fd7fb72f180 INFO   GST_INIT gst.c:502:init_pre: Initializing GStreamer Core Library version 1.2.0
0:00:00.000217842  4215 0x7fd7fb72f180 INFO   GST_INIT gst.c:503:init_pre: Using library installed in /usr/lib/x86_64-linux-gnu
0:00:00.000245748  4215 0x7fd7fb72f180 INFO   GST_INIT gst.c:513:init_pre: Linux ulisv 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 x86_64
0:00:00.001023703  4215 0x7fd7fb72f180 INFO   GST_INIT gstmessage.c:123:_priv_gst_message_initialize: init messages
0:00:00.001135331  4215 0x7fd7fb72f180 INFO   GST_INIT gstcontext.c:77:_priv_gst_context_initialize: init contexts
0:00:00.001303438  4215 0x7fd7fb72f180 INFO   GST_PLUGIN_LOADING gstplugin.c:317:_priv_gst_plugin_in