mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	conf: fix videotestsrc example configuration
In JSON, the colon actually is used for assignment, but in spa_type_info the colon is used as a separator. To properly parse and pass the properties to the videotestsrc, the key has to be enclosed by quotation marks to prevent splitting by the JSON parser.
This commit is contained in:
		
							parent
							
								
									63865307d9
								
							
						
					
					
						commit
						109567ed3d
					
				
					 3 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -144,7 +144,7 @@ context.objects = [
 | 
				
			||||||
    # Creates an object from a PipeWire factory with the given parameters.
 | 
					    # Creates an object from a PipeWire factory with the given parameters.
 | 
				
			||||||
    # If nofail is given, errors are ignored (and no object is created).
 | 
					    # If nofail is given, errors are ignored (and no object is created).
 | 
				
			||||||
    #
 | 
					    #
 | 
				
			||||||
    #{ factory = spa-node-factory   args = { factory.name = videotestsrc node.name = videotestsrc node.description = videotestsrc Spa:Pod:Object:Param:Props:patternType = 1 } }
 | 
					    #{ factory = spa-node-factory   args = { factory.name = videotestsrc node.name = videotestsrc node.description = videotestsrc "Spa:Pod:Object:Param:Props:patternType" = 1 } }
 | 
				
			||||||
    #{ factory = spa-device-factory args = { factory.name = api.jack.device foo=bar } flags = [ nofail ] }
 | 
					    #{ factory = spa-device-factory args = { factory.name = api.jack.device foo=bar } flags = [ nofail ] }
 | 
				
			||||||
    #{ factory = spa-device-factory args = { factory.name = api.alsa.enum.udev } }
 | 
					    #{ factory = spa-device-factory args = { factory.name = api.alsa.enum.udev } }
 | 
				
			||||||
    #{ factory = spa-node-factory   args = { factory.name = api.alsa.seq.bridge node.name = Internal-MIDI-Bridge } }
 | 
					    #{ factory = spa-node-factory   args = { factory.name = api.alsa.seq.bridge node.name = Internal-MIDI-Bridge } }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -88,7 +88,7 @@ context.objects = [
 | 
				
			||||||
    # If condition is given, the object is created only when the context properties
 | 
					    # If condition is given, the object is created only when the context properties
 | 
				
			||||||
    # all match the match rules.
 | 
					    # all match the match rules.
 | 
				
			||||||
    #
 | 
					    #
 | 
				
			||||||
    #{ factory = spa-node-factory   args = { factory.name = videotestsrc node.name = videotestsrc node.description = videotestsrc Spa:Pod:Object:Param:Props:patternType = 1 } }
 | 
					    #{ factory = spa-node-factory   args = { factory.name = videotestsrc node.name = videotestsrc node.description = videotestsrc "Spa:Pod:Object:Param:Props:patternType" = 1 } }
 | 
				
			||||||
    #{ factory = spa-device-factory args = { factory.name = api.jack.device foo=bar } flags = [ nofail ] }
 | 
					    #{ factory = spa-device-factory args = { factory.name = api.jack.device foo=bar } flags = [ nofail ] }
 | 
				
			||||||
    #{ factory = spa-device-factory args = { factory.name = api.alsa.enum.udev } }
 | 
					    #{ factory = spa-device-factory args = { factory.name = api.alsa.enum.udev } }
 | 
				
			||||||
    #{ factory = spa-node-factory   args = { factory.name = api.alsa.seq.bridge node.name = Internal-MIDI-Bridge } }
 | 
					    #{ factory = spa-node-factory   args = { factory.name = api.alsa.seq.bridge node.name = Internal-MIDI-Bridge } }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -214,7 +214,7 @@ context.objects = [
 | 
				
			||||||
    # If condition is given, the object is created only when the context properties
 | 
					    # If condition is given, the object is created only when the context properties
 | 
				
			||||||
    # all match the match rules.
 | 
					    # all match the match rules.
 | 
				
			||||||
    #
 | 
					    #
 | 
				
			||||||
    #{ factory = spa-node-factory   args = { factory.name = videotestsrc node.name = videotestsrc node.description = videotestsrc Spa:Pod:Object:Param:Props:patternType = 1 } }
 | 
					    #{ factory = spa-node-factory   args = { factory.name = videotestsrc node.name = videotestsrc node.description = videotestsrc "Spa:Pod:Object:Param:Props:patternType" = 1 } }
 | 
				
			||||||
    #{ factory = spa-device-factory args = { factory.name = api.jack.device foo=bar } flags = [ nofail ] }
 | 
					    #{ factory = spa-device-factory args = { factory.name = api.jack.device foo=bar } flags = [ nofail ] }
 | 
				
			||||||
    #{ factory = spa-device-factory args = { factory.name = api.alsa.enum.udev } }
 | 
					    #{ factory = spa-device-factory args = { factory.name = api.alsa.enum.udev } }
 | 
				
			||||||
    #{ factory = spa-node-factory   args = { factory.name = api.alsa.seq.bridge node.name = Internal-MIDI-Bridge } }
 | 
					    #{ factory = spa-node-factory   args = { factory.name = api.alsa.seq.bridge node.name = Internal-MIDI-Bridge } }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue